git://project.juiblex.co.uk
/
razor2.git/.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
00ed8c3
)
use -Wmissing-prototypes to help find dead code
author
Dan Winship
<danw@gnome.org>
Fri, 29 Feb 2008 16:51:58 +0000 (11:51 -0500)
committer
Dan 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
patch
|
blob
|
history
util.c
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
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)
{