# HG changeset patch # User Dan Winship # Date 1204303918 18000 # Node ID eef2b734f2ccc2814722500d50f2c8962af7d391 # Parent 5283f1b3de0f84d364f913281cafd1dde87ecfd6 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 -r 5283f1b3de0f -r eef2b734f2cc Makefile --- a/Makefile Fri Feb 29 11:46:37 2008 -0500 +++ b/Makefile Fri Feb 29 11:51:58 2008 -0500 @@ -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 -r 5283f1b3de0f -r eef2b734f2cc util.c --- a/util.c Fri Feb 29 11:46:37 2008 -0500 +++ b/util.c Fri Feb 29 11:51:58 2008 -0500 @@ -5,6 +5,8 @@ #include #include +#include "razor-internal.h" + int razor_create_dir(const char *root, const char *path) {