Review Board 1.7.16


clang compiler warning: -Wparentheses-equality

Review Request #4531 - Created March 26, 2015 and submitted

Diederik de Groot
13
ASTERISK-24917
Reviewers
asterisk-dev
Asterisk
clang's static analyzer will throw quite a number warnings / errors during compilation, some of which can be very helpfull in finding corner-case bugs

clang compiler warning:-Wparentheses-equality

Changes:
Needed to suppress this warning for the generated file 'ael.tab.c' over which we don't have control

 

Changes between revision 1 and 2

1 2
1 2

  1. /branches/13/res/Makefile: Loading...
  2. /branches/13/utils/Makefile: Loading...
/branches/13/res/Makefile
Revision 433444 New Change
[20] 30 lines
[+20]
31
ael/ael_lex.o: ael/ael_lex.c ../include/asterisk/ael_structs.h ael/ael.tab.h
31
ael/ael_lex.o: ael/ael_lex.c ../include/asterisk/ael_structs.h ael/ael.tab.h
32
ael/ael_lex.o: _ASTCFLAGS+=-I. -Iael -Wno-unused
32
ael/ael_lex.o: _ASTCFLAGS+=-I. -Iael -Wno-unused
33

    
   
33

   
34
ael/ael.tab.o: ael/ael.tab.c ael/ael.tab.h ../include/asterisk/ael_structs.h
34
ael/ael.tab.o: ael/ael.tab.c ael/ael.tab.h ../include/asterisk/ael_structs.h
35
ael/ael.tab.o: _ASTCFLAGS+=-I. -Iael -DYYENABLE_NLS=0
35
ael/ael.tab.o: _ASTCFLAGS+=-I. -Iael -DYYENABLE_NLS=0

    
   
36
	ifneq ($(AST_CLANG_BLOCKS),)

    
   
37
		_ASTCFLAGS+=-Wno-parentheses-equality

    
   
38
	endif
36

    
   
39

   
37
$(if $(filter res_ais,$(EMBEDDED_MODS)),modules.link,res_ais.so): ais/clm.o ais/evt.o
40
$(if $(filter res_ais,$(EMBEDDED_MODS)),modules.link,res_ais.so): ais/clm.o ais/evt.o
38
ais/clm.o ais/evt.o: _ASTCFLAGS+=$(call MOD_ASTCFLAGS,res_ais)
41
ais/clm.o ais/evt.o: _ASTCFLAGS+=$(call MOD_ASTCFLAGS,res_ais)
39

    
   
42

   
40
$(if $(filter res_snmp,$(EMBEDDED_MODS)),modules.link,res_snmp.so): snmp/agent.o
43
$(if $(filter res_snmp,$(EMBEDDED_MODS)),modules.link,res_snmp.so): snmp/agent.o
[+20] [20] 53 lines
/branches/13/utils/Makefile
Diff Revision 1 Diff Revision 2
 
  1. /branches/13/res/Makefile: Loading...
  2. /branches/13/utils/Makefile: Loading...

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.