Whamcloud - gitweb
LU-1481 build: quiet warnings due to := assignment
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 5 Jun 2012 18:53:31 +0000 (12:53 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 13 Jul 2012 17:08:45 +0000 (13:08 -0400)
commitca6bdcd8e8d3e01dd4ad56312efa3dd7657e6dda
treef71953293403e865f53ce90e23f639a0c6f55db2
parentfbdd08b958f974dd4d40a518ea3db8279428f013
LU-1481 build: quiet warnings due to := assignment

When running automake to generate Makefiles, newer compilers will
warn about non-portable assignments:

  lvfs/autoMakefile.am:52: `:='-style assignments are not portable

The use of ":=" vs. "=" determines when conditional expressions
are evaluated, but have absolutely no use for constant assignments,
so there is no point in using them at all in that case.

Convert all ":=" to "=" for constant assignments, leaving the
decision to use ":=" for conditional assignments until later.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I76caedbc1368a0d2fe02137c46b46c36fc3a500c
Reviewed-on: http://review.whamcloud.com/3129
Tested-by: Hudson
Reviewed-by: Brian J. Murrell <brian@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
35 files changed:
build/autoMakefile.am
ldiskfs/autoMakefile.am
libcfs/autoconf/Makefile.am
libcfs/include/libcfs/Makefile.am
libcfs/include/libcfs/darwin/Makefile.am
libcfs/include/libcfs/linux/Makefile.am
libcfs/include/libcfs/posix/Makefile.am
libcfs/include/libcfs/util/Makefile.am
libcfs/libcfs/autoMakefile.am
libcfs/libcfs/darwin/Makefile.am
libcfs/libcfs/linux/Makefile.am
libcfs/libcfs/posix/Makefile.am
libcfs/libcfs/util/Makefile.am
lnet/autoconf/Makefile.am
lnet/include/lnet/Makefile.am
lnet/include/lnet/darwin/Makefile.am
lnet/include/lnet/linux/Makefile.am
lnet/klnds/socklnd/autoMakefile.am
lnet/lnet/autoMakefile.am
lustre/autoMakefile.am
lustre/autoconf/Makefile.am
lustre/include/Makefile.am
lustre/liblustre/tests/Makefile.am
lustre/lov/autoMakefile.am
lustre/lvfs/autoMakefile.am
lustre/obdclass/autoMakefile.am
lustre/obdclass/darwin/Makefile.am
lustre/obdclass/linux/Makefile.am
lustre/obdecho/autoMakefile.am
lustre/osc/autoMakefile.am
lustre/ptlrpc/autoMakefile.am
lustre/tests/Makefile.am
lustre/utils/gss/Makefile.am
snmp/Makefile.am
snmp/autoconf/Makefile.am