From: Martin Storsjö martin@martin.st
--- libs/compiler-rt/fp_lib.h | 2 ++ libs/compiler-rt/int_lib.h | 2 ++ 2 files changed, 4 insertions(+)
diff --git a/libs/compiler-rt/fp_lib.h b/libs/compiler-rt/fp_lib.h index a0e19ab6a8f..71c722774fa 100644 --- a/libs/compiler-rt/fp_lib.h +++ b/libs/compiler-rt/fp_lib.h @@ -27,6 +27,8 @@ #include "int_lib.h" #include "int_math.h"
+#pragma GCC diagnostic ignored "-Wdeclaration-after-statement" + // x86_64 FreeBSD prior v9.3 define fixed-width types incorrectly in // 32-bit mode. #if defined(__FreeBSD__) && defined(__i386__) diff --git a/libs/compiler-rt/int_lib.h b/libs/compiler-rt/int_lib.h index fe8a3bdedc0..d5ebcfc8ea8 100644 --- a/libs/compiler-rt/int_lib.h +++ b/libs/compiler-rt/int_lib.h @@ -16,6 +16,8 @@ #ifndef INT_LIB_H #define INT_LIB_H
+#pragma GCC diagnostic ignored "-Wdeclaration-after-statement" + /* Assumption: Signed integral is 2's complement. */ /* Assumption: Right shift of signed negative is arithmetic shift. */ /* Assumption: Endianness is little or big (not mixed). */