mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-03 08:13:37 +00:00
LINT: tweek the lint make rules.
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
This commit is contained in:
parent
efb280c511
commit
75bd25e195
@ -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)"'
|
||||
|
||||
|
@ -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 $@ $<
|
||||
|
Loading…
Reference in New Issue
Block a user