From: Jan Janssen Date: Fri, 20 May 2022 10:47:43 +0000 (+0200) Subject: boot: Build with C11 too X-Git-Tag: v251~4^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1672234e05537a6d983d36a9ca9a1e4446dce7d;p=thirdparty%2Fsystemd.git boot: Build with C11 too --- diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build index e0edbf18a22..299a01b9be7 100644 --- a/src/boot/efi/meson.build +++ b/src/boot/efi/meson.build @@ -187,7 +187,7 @@ efi_cflags = cc.get_supported_arguments( ] ) + [ '-nostdlib', - '-std=gnu99', + '-std=gnu11', '-ffreestanding', '-fshort-wchar', '-fvisibility=hidden', diff --git a/src/fundamental/macro-fundamental.h b/src/fundamental/macro-fundamental.h index 1c198f6ad9a..597429dc6c4 100644 --- a/src/fundamental/macro-fundamental.h +++ b/src/fundamental/macro-fundamental.h @@ -53,7 +53,7 @@ #define CONCATENATE(x, y) XCONCATENATE(x, y) #ifdef SD_BOOT - void efi_assert(const char *expr, const char *file, unsigned line, const char *function) _noreturn_; + _noreturn_ void efi_assert(const char *expr, const char *file, unsigned line, const char *function); #ifdef NDEBUG #define assert(expr)