Skip to content

Commit c7fcd1b

Browse files
committed
Workaround for gcc13 false positive warning
1 parent f5c759e commit c7fcd1b

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

source/bxgeomtools/testing/test_reflection_0.cxx

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,18 @@
4040
void test_placement()
4141
{
4242
datatools::logger::priority logging = datatools::logger::PRIO_NOTICE;
43-
#if defined(__GNUC__)
44-
#if __GNUC_VERSION__ >= 130000
45-
// #pragma message "Applying special diagnostic ignored '-Wdangling-reference'"
46-
#pragma GCC diagnostic push
47-
#pragma GCC diagnostic ignored "-Wdangling-reference"
48-
#endif
49-
#endif
43+
// #if defined(__GNUC__)
44+
// #if __GNUC_VERSION__ >= 130000
45+
// #pragma GCC diagnostic push
46+
// #pragma GCC diagnostic ignored "-Wdangling-reference"
47+
// #endif
48+
// #endif
5049
const camp::Class & plctMetaClass = camp::classByName("geomtools::placement");
51-
#if defined(__GNUC__)
52-
#if __GNUC_VERSION__ >= 130000
53-
// #pragma message "Applying special diagnostic ignored '-Wdangling-reference'"
54-
#pragma GCC diagnostic pop
55-
#endif
56-
#endif
50+
// #if defined(__GNUC__)
51+
// #if __GNUC_VERSION__ >= 130000
52+
// #pragma GCC diagnostic pop
53+
// #endif
54+
// #endif
5755

5856
camp::UserObject plctObj0 = plctMetaClass.construct();
5957

0 commit comments

Comments
 (0)