use -Wmissing-prototypes to help find dead code
authorDan Winship <danw@gnome.org>
Fri, 29 Feb 2008 16:51:58 +0000 (11:51 -0500)
committerDan Winship <danw@gnome.org>
Fri, 29 Feb 2008 16:51:58 +0000 (11:51 -0500)
(by forcing us to declare functions static, allowing gcc to tell us
"warning: foo defined by not used")

Makefile
util.c

index 39555f0..dd784a7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS = -Wall -g
+CFLAGS = -Wall -Wstrict-prototypes -Wmissing-prototypes -g
 LDLIBS = -lexpat -lz -g -lrpm -lcurl
 
 all : razor test-driver
diff --git a/util.c b/util.c
index f0dfc60..2501f65 100644 (file)
--- a/util.c
+++ b/util.c
@@ -5,6 +5,8 @@
 #include <stdio.h>
 #include <unistd.h>
 
+#include "razor-internal.h"
+
 int
 razor_create_dir(const char *root, const char *path)
 {