]> git.proxmox.com Git - mirror_corosync.git/commitdiff
LINT: tweek the lint make rules.
authorAngus Salkeld <asalkeld@redhat.com>
Tue, 11 Nov 2008 17:28:22 +0000 (17:28 +0000)
committerAngus Salkeld <asalkeld@redhat.com>
Tue, 11 Nov 2008 17:28:22 +0000 (17:28 +0000)
Makefile.inc: add -unrecog (don't complain about things like strdup().
tools/Makefile: don't use *.c as it complains about duplicate main() functions

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1695 fd59a12c-fef9-0310-b244-a6a79926bd2f

Makefile.inc
tools/Makefile

index 15f5ee56cf81a835984e6ce5d52bf9dac8fb5671..3aeee4cb10c229cba6dfc90564e8676c8e5a4c0d 100644 (file)
@@ -46,7 +46,7 @@ endif
 CFLAGS =
 LDFLAGS =
 DYFLAGS =
-LINT_FLAGS = -weak +posixlib +ignoresigns -fcnuse -badflag -D__gnuc_va_list=va_list -D__attribute\(x\)= 
+LINT_FLAGS = -weak -unrecog +posixlib +ignoresigns -fcnuse -badflag -D__gnuc_va_list=va_list -D__attribute\(x\)= 
 
 override CFLAGS += -DLCRSODIR='"$(LCRSODIR)"'
 
index 82888f39bdba3515822a4fa34c13567d0089b5d5..029c8e0033035cf0b3795d853aaa187e50ee59d8 100644 (file)
@@ -67,7 +67,11 @@ clean:
        rm -f *.o $(BINARIES)
 
 lint:
-       -splint $(LINT_FLAGS) $(CFLAGS) *.c
+       -splint $(LINT_FLAGS) $(CFLAGS) corosync-objctl.c
+       -splint $(LINT_FLAGS) $(CFLAGS) corosync-cfgtool.c
+       -splint $(LINT_FLAGS) $(CFLAGS) corosync-keygen.c
+       -splint $(LINT_FLAGS) $(CFLAGS) corosync-fplay.c
+       -splint $(LINT_FLAGS) $(CFLAGS) corosync-pload.c
 
 %.o: %.c
        $(CC) $(CFLAGS) $(CPPFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<