From 25882899879531d7bea20ab2d8c1e3dea0a7975b Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sat, 10 Oct 2009 00:30:01 +0100 Subject: [PATCH] Fix checked builds with gcc4.2 Recent change sets removed the 'ignore-all-warnings' mode from a number of files, in favour of using the implicit-function-declaration pragma. Sadly, that pragma isn't available in gcc 4.2. Revert the Makefile changes such that ignore all warnings is turned back on for the affected files, and note this in README.WARNINGS Reviewed-on: http://gerrit.openafs.org/639 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- README.WARNINGS | 6 +++--- src/kauth/Makefile.in | 2 +- src/rxkad/Makefile.in | 2 +- src/volser/Makefile.in | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.WARNINGS b/README.WARNINGS index aa6c452e8..d7fc5f9b2 100644 --- a/README.WARNINGS +++ b/README.WARNINGS @@ -65,7 +65,7 @@ kauth/kaserver.c : all : ExtendedCellInfo kauth/krb_udp.c : all : XXX kauth/admin_tools.c : all : ubik_Call nonsense kauth/authclient.c : strict-proto : ubik_Call nonsense - : implicit-func : ubik_Call nonsense + : all : ubik_Call nonsense kauth/kas.c : all : XXX kauth/klog.c : all : XXX kauth/ka-forwarder.c : all : XXX @@ -77,7 +77,7 @@ libadmin/samples/rxdebug_peers.c : format : struct clock vs unsigned int libadmin/test/client.c : all : util_RPCStatsStateGet types ptserver/ptserver.c : all : ExtendedCellInfo rxkad/rxkad_server.c : all : Des key nonsense -rxkad/ticket5.c : implicit-func : CRC functions +rxkad/ticket5.c : all : CRC functions rx/rx.c : all (pthread) : rxkad_global_stats_init not proto'd rx/xdr_rx.c : all (ukernel) : Prototypes don't match due to AFS_XDR_T not being used in the xdr header @@ -92,7 +92,7 @@ uss/lex.yy.c : all : Unused symbols viced/fsprobe.c : all : ubik_Call vlserver/vlserver.c : all : GetExtendedCellInfo vol/salvager.c : all : consts & undefined variable from header -volser/vos.c : implicit-func : ubik_Call_New +volser/vos.c : all : ubik_Call_New volser/vol-dump.c : format : afs_sfsize_t volser/vsprocs.c : format-extra : The ONERROR macro needs to be rethought diff --git a/src/kauth/Makefile.in b/src/kauth/Makefile.in index fa104808d..7b81fba9c 100644 --- a/src/kauth/Makefile.in +++ b/src/kauth/Makefile.in @@ -101,7 +101,7 @@ kaprocs.o: kaprocs.c ${INCLS} kaport.h ${CC} ${CFLAGS} @CFLAGS_NOERROR@ -c $< authclient.o: authclient.c ${INCLS} - $(CC) $(CFLAGS) -c $< + $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $< kaauxdb.o: kaauxdb.c $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $< diff --git a/src/rxkad/Makefile.in b/src/rxkad/Makefile.in index 00f1d8c71..c03a4c136 100644 --- a/src/rxkad/Makefile.in +++ b/src/rxkad/Makefile.in @@ -77,7 +77,7 @@ ticket.o: ticket.c lifetimes.h ${INCLS} $(CC) $(CFLAGS) -c $< ticket5.o: ticket5.c v5gen.c v5der.c v5gen-rewrite.h ${INCLS} - $(CC) $(CFLAGS) -c $< + $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $< crc.o: crc.c ${INCLS} diff --git a/src/volser/Makefile.in b/src/volser/Makefile.in index f9d7167a3..2033ae3b9 100644 --- a/src/volser/Makefile.in +++ b/src/volser/Makefile.in @@ -143,7 +143,7 @@ vol_split.o: vol_split.c ${VINCLS} ${INTINCLS} ${RINCLS} # Errors # vos.o: vos.c - $(CC) $(CFLAGS) -c $< + $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $< # # Installation targets -- 2.39.5