]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
tptserver: Disable strict-aliasing warnings
authorMarc Dionne <marc.c.dionne@gmail.com>
Tue, 11 Sep 2012 20:39:55 +0000 (16:39 -0400)
committerDerrick Brashear <shadow@your-file-system.com>
Wed, 12 Sep 2012 11:11:06 +0000 (04:11 -0700)
Disable the strict-aliasing warnings for a few files that have
supergroups related code.  This was already done in ptserver but
not in tptserver.

Change-Id: I8b3c8b5f5b19fd47fed949e7b2568678a5ffffd4
Reviewed-on: http://gerrit.openafs.org/8096
Tested-by: Simon Wilkinson <simonxwilkinson@gmail.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/tptserver/Makefile.in

index 379dc61d3e8ad42e9d21a10aa310c733473fe02d..a2f38c52635962945b1433963fff341422c22e22 100644 (file)
@@ -105,11 +105,13 @@ pthread_glock.o: ${UTIL}/pthread_glock.c
 ptserver.o: ${PTSERVER}/ptserver.c ${INCLS}
        ${CCRULE} ${srcdir}/${PTSERVER}/ptserver.c
 
+# When supergroups is enabled, some parts of ptserver cast between
+# # incompatible structs.
 ptutils.o: ${PTSERVER}/ptutils.c ${INCLS}
-       ${CCRULE} ${srcdir}/${PTSERVER}/ptutils.c
+       ${CCRULE} @CFLAGS_NOSTRICT@ ${srcdir}/${PTSERVER}/ptutils.c
 
 ptprocs.o: ${PTSERVER}/ptprocs.c ${INCLS}
-       ${CCRULE} ${srcdir}/${PTSERVER}/ptprocs.c
+       ${CCRULE} @CFLAGS_NOSTRICT@ ${srcdir}/${PTSERVER}/ptprocs.c
 
 utils.o: ${PTSERVER}/utils.c ${INCLS}
        ${CCRULE} ${srcdir}/${PTSERVER}/utils.c