From: Dan Winship Date: Fri, 29 Feb 2008 16:51:58 +0000 (-0500) Subject: use -Wmissing-prototypes to help find dead code X-Git-Tag: 0.1~225 X-Git-Url: http://project.juiblex.co.uk/git/?a=commitdiff_plain;h=5f5c2b337d2638427dbf0b04eac2e119071810c0;p=razor.git use -Wmissing-prototypes to help find dead code (by forcing us to declare functions static, allowing gcc to tell us "warning: foo defined by not used") --- diff --git a/Makefile b/Makefile index 39555f0..dd784a7 100644 --- 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 --- a/util.c +++ b/util.c @@ -5,6 +5,8 @@ #include #include +#include "razor-internal.h" + int razor_create_dir(const char *root, const char *path) {