Avoid warnings when building on Linux.
This commit is contained in:
parent
0a6717596f
commit
da57be191a
|
@ -685,7 +685,7 @@ public abstract class BaseCppTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
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));
|
command2.addAll(allCppFiles(tmpdir));
|
||||||
String output = runCommand(command2.toArray(new String[0]), tmpdir, "building test binary");
|
String output = runCommand(command2.toArray(new String[0]), tmpdir, "building test binary");
|
||||||
if (output == null) {
|
if (output == null) {
|
||||||
|
|
|
@ -108,7 +108,7 @@
|
||||||
#define EXPIMP_TEMPLATE
|
#define EXPIMP_TEMPLATE
|
||||||
#else
|
#else
|
||||||
#define GUID_LIBUUID
|
#define GUID_LIBUUID
|
||||||
#if __GNUC__ >= 4
|
#if __GNUC__ >= 6
|
||||||
#define ANTLR4CPP_PUBLIC __attribute__ ((visibility ("default")))
|
#define ANTLR4CPP_PUBLIC __attribute__ ((visibility ("default")))
|
||||||
#else
|
#else
|
||||||
#define ANTLR4CPP_PUBLIC
|
#define ANTLR4CPP_PUBLIC
|
||||||
|
|
Loading…
Reference in New Issue