From: Akim Demaille Date: Mon, 3 Feb 2014 14:01:44 +0000 (+0100) Subject: build: use abort to pacify compiler errors X-Git-Tag: v3.0.3~25 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/ab96bb245789d1c24a68d637d48ffab889be3152?hp=fc51acddb45242904128a7637dc2ab9216ba0662 build: use abort to pacify compiler errors clang, with -DNDEBUG and -Werror fails on some functions that might lack a return. This is because aver is just another assert, discarded with -DNDEBUG. So use abort. * src/muscle-tab.c, src/scan-skel.l: here. --- diff --git a/src/muscle-tab.c b/src/muscle-tab.c index e1f6ee4b..6d48d014 100644 --- a/src/muscle-tab.c +++ b/src/muscle-tab.c @@ -37,7 +37,7 @@ muscle_kind_new (char const *k) return muscle_keyword; else if (STREQ (k, "string")) return muscle_string; - aver (0); + abort (); } char const * @@ -49,7 +49,7 @@ muscle_kind_string (muscle_kind k) case muscle_keyword: return "keyword"; case muscle_string: return "string"; } - aver (0); + abort (); } diff --git a/src/scan-skel.l b/src/scan-skel.l index 06a13665..efada879 100644 --- a/src/scan-skel.l +++ b/src/scan-skel.l @@ -192,7 +192,7 @@ flag (const char *arg) else if (STREQ (arg, "warn")) return Wother; else - aver (false); + abort (); } static void