Skip to content

Commit ec70e94

Browse files
committed
#437: use compiler detections to guard pragmas to suppress excessive warnings
1 parent 0f97cc0 commit ec70e94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp/CppGenerator.java

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ private static CharSequence generateGroupProperty(
372372
indent + "#pragma clang diagnostic ignored \"-Wtautological-compare\"\n" +
373373
indent + "#endif\n" +
374374
indent + " return m_actingVersion >= %1$sSinceVersion();\n" +
375-
indent + "#if SBE_SBE_CLANG\n" +
375+
indent + "#if defined(__clang__)\n" +
376376
indent + "#pragma clang diagnostic pop\n" +
377377
indent + "#endif\n" +
378378
indent + " }\n",

0 commit comments

Comments
 (0)