use -Wmissing-prototypes to help find dead code
authorDan Winship <danw@gnome.org>
Fri Feb 29 11:51:58 2008 -0500 (2008-02-29)
changeset 136eef2b734f2cc
parent 135 5283f1b3de0f
child 137 4722cd3437cb
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
util.c
     1.1 --- a/Makefile	Fri Feb 29 11:46:37 2008 -0500
     1.2 +++ b/Makefile	Fri Feb 29 11:51:58 2008 -0500
     1.3 @@ -1,4 +1,4 @@
     1.4 -CFLAGS = -Wall -g
     1.5 +CFLAGS = -Wall -Wstrict-prototypes -Wmissing-prototypes -g
     1.6  LDLIBS = -lexpat -lz -g -lrpm -lcurl
     1.7  
     1.8  all : razor test-driver
     2.1 --- a/util.c	Fri Feb 29 11:46:37 2008 -0500
     2.2 +++ b/util.c	Fri Feb 29 11:51:58 2008 -0500
     2.3 @@ -5,6 +5,8 @@
     2.4  #include <stdio.h>
     2.5  #include <unistd.h>
     2.6  
     2.7 +#include "razor-internal.h"
     2.8 +
     2.9  int
    2.10  razor_create_dir(const char *root, const char *path)
    2.11  {