saaadhu / naggy

A live compiler diagnostics extension for Atmel Studio
18 stars 4 forks source link

have dozends of warnings with naggy turned on #47

Open petergie opened 9 years ago

petergie commented 9 years ago

I have a liitle project that has been compiled in AVRStudio without error or warning. With Naggy turned on there are warnings: Warning 1 [N] 3553 : use of logical '&&' with constant operand H:\ATMEL\Atmel Studio\US-Messung\lcd.c 147 49 US-Messung Warning 2 [N] 3098 : use '&' for a bitwise operation H:\ATMEL\Atmel Studio\US-Messung\lcd.c 147 49 US-Messung Warning 3 [N] 3099 : remove constant to silence this warning H:\ATMEL\Atmel Studio\US-Messung\lcd.c 147 49 US-Messung

The line is:

if ( ( &LCD_DATA0_PORT == &LCD_DATA1_PORT) && ( &LCD_DATA1_PORT == &LCD_DATA2_PORT ) && ( &LCD_DATA2_PORT == &LCD_DATA3_PORT )
  && (LCD_DATA0_PIN == 0) && (LCD_DATA1_PIN == 1) && (LCD_DATA2_PIN == 2) && (LCD_DATA3_PIN == 3) )

There are even mor of such warnings for similar codes.

Also: F_CPU I declared as a fixed Symbol for the Compiler in the Project - Properties, but it is not recognized by Naggy, gives an Error "use of undeclared identifier"