ffi: compile extern C files with -Wno-unused-function to avoid warning on C dead...
authorJean Privat <jean@pryen.org>
Fri, 7 Aug 2015 01:04:50 +0000 (21:04 -0400)
committerJean Privat <jean@pryen.org>
Fri, 7 Aug 2015 01:23:35 +0000 (21:23 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/c_tools.nit

index 50bbcd3..3b63675 100644 (file)
@@ -148,7 +148,7 @@ class ExternCFile
                if not pkgconfigs.is_empty then
                        pkg = "`pkg-config --cflags {pkgconfigs.join(" ")}`"
                end
-               return "$(CC) $(CFLAGS) -Wall {self.cflags} {pkg} -c -o {o} {ff}"
+               return "$(CC) $(CFLAGS) -Wno-unused-function -Wall {self.cflags} {pkg} -c -o {o} {ff}"
        end
 
        redef fun compiles_to_o_file do return true