File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
source/bxdatatools/testing Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,20 @@ void test_logger (bool /*debug_*/)
369369 std::clog << " Does not exist: " << " datatools::logger::property" << std::endl;
370370 }
371371
372+ #if defined(__GNUC__)
373+ #if __GNUC_VERSION__ >= 130000
374+ // #pragma message "Applying special diagnostic ignored '-Wdangling-reference'"
375+ #pragma GCC diagnostic push
376+ #pragma GCC diagnostic ignored "-Wdangling-reference"
377+ #endif
378+ #endif
372379 const camp::Enum & tMetaEnum = camp::enumByName (" datatools::logger::priority" );
380+ #if defined(__GNUC__)
381+ #if __GNUC_VERSION__ >= 130000
382+ // #pragma message "Applying special diagnostic ignored '-Wdangling-reference'"
383+ #pragma GCC diagnostic pop
384+ #endif
385+ #endif
373386 for (int i = 0 ; i < (int ) tMetaEnum.size (); i++) {
374387 std::clog << " - Key '" << tMetaEnum.pair (i).name
375388 << " ' has value = " << tMetaEnum.pair (i).value << std::endl;
You can’t perform that action at this time.
0 commit comments