From 5f5c2b337d2638427dbf0b04eac2e119071810c0 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 29 Feb 2008 11:51:58 -0500 Subject: [PATCH] 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") --- Makefile | 2 +- util.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) 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) { -- 1.7.1