Avoid warnings when building on Linux.

This commit is contained in:
Mike Lischke 2016-11-10 10:28:13 +01:00
parent 0a6717596f
commit da57be191a
2 changed files with 2 additions and 2 deletions

View File

@ -685,7 +685,7 @@ public abstract class BaseCppTest {
}
try {
List<String> command2 = new ArrayList<String>(Arrays.asList("clang++", "-std=c++11", "-I", includePath, "-L.", "-lantlr4-runtime"));
List<String> command2 = new ArrayList<String>(Arrays.asList("clang++", "-std=c++11", "-I", includePath, "-L.", "-lantlr4-runtime", "-Wno-type-limits"));
command2.addAll(allCppFiles(tmpdir));
String output = runCommand(command2.toArray(new String[0]), tmpdir, "building test binary");
if (output == null) {

View File

@ -108,7 +108,7 @@
#define EXPIMP_TEMPLATE
#else
#define GUID_LIBUUID
#if __GNUC__ >= 4
#if __GNUC__ >= 6
#define ANTLR4CPP_PUBLIC __attribute__ ((visibility ("default")))
#else
#define ANTLR4CPP_PUBLIC