]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Build with C11 too
authorJan Janssen <medhefgo@web.de>
Fri, 20 May 2022 10:47:43 +0000 (12:47 +0200)
committerJan Janssen <medhefgo@web.de>
Fri, 20 May 2022 10:47:43 +0000 (12:47 +0200)
src/boot/efi/meson.build
src/fundamental/macro-fundamental.h

index e0edbf18a226e7a90d02487b47d62ab449b55638..299a01b9be7eac4e69d39c10e5d0c857c02a462e 100644 (file)
@@ -187,7 +187,7 @@ efi_cflags = cc.get_supported_arguments(
         ]
 ) + [
         '-nostdlib',
-        '-std=gnu99',
+        '-std=gnu11',
         '-ffreestanding',
         '-fshort-wchar',
         '-fvisibility=hidden',
index 1c198f6ad9aa4f550aa1428ceb614dd04867a302..597429dc6c461d1f0a86a1d332833fad94326afd 100644 (file)
@@ -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)