diff options
author | Matthew Jordan <mjordan@digium.com> | 2015-03-28 12:41:24 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2015-03-28 12:41:24 +0000 |
commit | e9520dbe0db9a4f3c5c2cd90a9740880b18d1e90 (patch) | |
tree | 72635ac43e9024273cfe4af4af158b8363bf6fec /utils | |
parent | fd50e5bfb5cef84e2397fbabb50091ee787bb7c9 (diff) |
clang compiler warnings: Fix -Wparantheses-equality warnings
Clang will treat ((a == b)) as a warning, as it reasonably expects that the
developer may have intended to write (a == b) or ((a = b)). This patch cleans
up all instances where equality, not assignment, was intended between two
parantheses.
Review: https://reviewboard.asterisk.org/r/4531/
ASTERISK-24917
Repoted by: dkdegroot
patches:
rb4531.patch submitted by dkdegroot (License 6600)
........
Merged revisions 433687 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 433688 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@433689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/Makefile b/utils/Makefile index 8fb1a2967..af216738b 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -139,6 +139,9 @@ aelbison.c: $(ASTTOPDIR)/res/ael/ael.tab.c $(ECHO_PREFIX) echo " [CP] $(subst $(ASTTOPDIR)/,,$<) -> $@" $(CMD_PREFIX) cp "$<" "$@" aelbison.o: _ASTCFLAGS+=-I$(ASTTOPDIR)/res/ael -DYYENABLE_NLS=0 + ifneq ($(AST_CLANG_BLOCKS),) + _ASTCFLAGS+=-Wno-parentheses-equality + endif pbx_ael.c: $(ASTTOPDIR)/pbx/pbx_ael.c $(ECHO_PREFIX) echo " [CP] $(subst $(ASTTOPDIR)/,,$<) -> $@" |