diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-10-01 18:38:54 +0200 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2015-11-06 19:58:26 +0000 |
commit | a2f2fb6acfbc8db3626b790839b54fd417c08806 (patch) | |
tree | 26c2769197165a88cc8381d5993207a4b323e804 | |
parent | cf67d8b49b59d66bc0e079a31ca547834dd49161 (diff) |
build: disable -Wself-assign
Prevent these warnings in clang 3.6:
./serialize.h:96:9: warning: explicitly assigning value of variable of type 'uint64_t' (aka 'unsigned long') to itself [-Wself-assign]
obj = (obj);
~~~ ^ ~~~
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index bc0bbc4397..93517fb31c 100644 --- a/configure.ac +++ b/configure.ac @@ -167,7 +167,7 @@ fi ## compatibility with the legacy buildsystem. ## if test "x$CXXFLAGS_overridden" = "xno"; then - CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter" + CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wno-self-assign" fi CPPFLAGS="$CPPFLAGS -DBOOST_SPIRIT_THREADSAFE -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS" |