mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-26 12:41:01 +08:00
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.
This commit is contained in:
parent
7f006f8ad5
commit
a255fb20ae
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user