Commit a255fb20 authored by Robert Edmonds's avatar Robert Edmonds

test-generated-code2: Ignore -Wdeclaration-after-statement

This file uses declarations after statements and fixing it would make
the code less readable, so silence this particular diagnostic in this
particular file.
parent 7f006f8a
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
#include "t/test-optimized.pb-c.h" #include "t/test-optimized.pb-c.h"
#include "t/generated-code2/test-full-cxx-output.inc" #include "t/generated-code2/test-full-cxx-output.inc"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
#define TEST_ENUM_SMALL_TYPE_NAME Foo__TestEnumSmall #define TEST_ENUM_SMALL_TYPE_NAME Foo__TestEnumSmall
#define TEST_ENUM_SMALL(shortname) FOO__TEST_ENUM_SMALL__##shortname #define TEST_ENUM_SMALL(shortname) FOO__TEST_ENUM_SMALL__##shortname
#define TEST_ENUM_TYPE_NAME Foo__TestEnum #define TEST_ENUM_TYPE_NAME Foo__TestEnum
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment