mirror of
				https://github.com/netwide-assembler/nasm.git
				synced 2025-10-10 00:25:06 -04:00 
			
		
		
		
	Fix warnings generated by clang 3.0
Fix warnings like this:
output/outelf32.c:2120:33: warning: equality comparison with extraneous
      parentheses [-Wparentheses-equality]
            if ((match->section == index)) {
                 ~~~~~~~~~~~~~~~^~~~~~~~
output/outelf32.c:2120:33: note: remove extraneous parentheses around the
      comparison to silence this warning
            if ((match->section == index)) {
                ~               ^       ~
output/outelf32.c:2120:33: note: use '=' to turn this equality comparison into
      an assignment
            if ((match->section == index)) {
                                ^~
                                =
1 warning generated.
Signed-off-by: Andrew Nayenko <resver@gmail.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
			
			
This commit is contained in:
		
				
					committed by
					
						 Cyrill Gorcunov
						Cyrill Gorcunov
					
				
			
			
				
	
			
			
			
						parent
						
							842512c527
						
					
				
				
					commit
					57162eb084
				
			| @@ -2117,7 +2117,7 @@ static void dwarf32_findsect(const int index) | |||||||
|     if (dwarf_fsect) { |     if (dwarf_fsect) { | ||||||
|         match = dwarf_fsect; |         match = dwarf_fsect; | ||||||
|         for (sinx = 0; sinx < dwarf_nsections; sinx++) { |         for (sinx = 0; sinx < dwarf_nsections; sinx++) { | ||||||
|             if ((match->section == index)) { |             if (match->section == index) { | ||||||
|                 dwarf_csect = match; |                 dwarf_csect = match; | ||||||
|                 return; |                 return; | ||||||
|             } |             } | ||||||
|   | |||||||
| @@ -2204,7 +2204,7 @@ static void dwarf64_findsect(const int index) | |||||||
|     if (dwarf_fsect) { |     if (dwarf_fsect) { | ||||||
|         match = dwarf_fsect; |         match = dwarf_fsect; | ||||||
|         for (sinx = 0; sinx < dwarf_nsections; sinx++) { |         for (sinx = 0; sinx < dwarf_nsections; sinx++) { | ||||||
|             if ((match->section == index)) { |             if (match->section == index) { | ||||||
|                 dwarf_csect = match; |                 dwarf_csect = match; | ||||||
|                 return; |                 return; | ||||||
|             } |             } | ||||||
|   | |||||||
| @@ -2159,7 +2159,7 @@ static void dwarfx32_findsect(const int index) | |||||||
|     if (dwarf_fsect) { |     if (dwarf_fsect) { | ||||||
|         match = dwarf_fsect; |         match = dwarf_fsect; | ||||||
|         for (sinx = 0; sinx < dwarf_nsections; sinx++) { |         for (sinx = 0; sinx < dwarf_nsections; sinx++) { | ||||||
|             if ((match->section == index)) { |             if (match->section == index) { | ||||||
|                 dwarf_csect = match; |                 dwarf_csect = match; | ||||||
|                 return; |                 return; | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user