From ab96bb245789d1c24a68d637d48ffab889be3152 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 3 Feb 2014 15:01:44 +0100 Subject: [PATCH 1/1] 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. --- src/muscle-tab.c | 4 ++-- src/scan-skel.l | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.45.2