From: Simon Wilkinson Date: Tue, 4 Sep 2012 11:33:02 +0000 (+0100) Subject: Fix aliasing problems in tptserver X-Git-Tag: upstream/1.8.0_pre1^2~2060 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=14141123da0c098fc168772277b14f114bf4af5d;p=packages%2Fo%2Fopenafs.git Fix aliasing problems in tptserver Commit f2db78a346112f5320efc6f0b6b9fe4ae0d893d3 disabled strict aliasing for ptutils.c and ptprocs.c when built in the ptserver directory. Similarly disable aliasing checks for these files when built in the tptserver directory. This doesn't actually fix the significant problems with these files, but doing so is going to require completely reworking the way that supergroups is implemented, so just disable these optimisations in the compiler for now. Change-Id: I6857ba83238a2c98a6540c795426f1a4038b70b3 Reviewed-on: http://gerrit.openafs.org/8035 Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- diff --git a/src/tptserver/Makefile.in b/src/tptserver/Makefile.in index 38e54da4a..a00fad1ea 100644 --- a/src/tptserver/Makefile.in +++ b/src/tptserver/Makefile.in @@ -48,6 +48,11 @@ all: ptserver pts pt_util db_verify \ depinstall: +# When supergroups is enabled, some parts of ptserver cast between +# incompatible structs. +CFLAGS_ptutils.o = @CFLAGS_NOSTRICT@ +CFLAGS_ptprocs.o = @CFLAGS_NOSTRICT@ + # # Build targets #