src: compile user C code with -Wall
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 9 Jun 2015 14:55:59 +0000 (10:55 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 9 Jun 2015 15:37:15 +0000 (11:37 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/c_tools.nit

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