avrdudes / avarice

AVaRICE is a program for interfacing the Atmel JTAG ICE to GDB to allow users to debug their embedded AVR target.
GNU General Public License v2.0
35 stars 11 forks source link

[patch #15] Fix gcc 4.4.1 warnings #49

Closed avrs-admin closed 2 years ago

avrs-admin commented 2 years ago

andyz 2010-05-01 07:44:11

The attached patch fixes lots of warnings emited by newer gcc's. Also it fixes some almost-bugs, like not returning anything from functions that are expected to return something.

warnings.patch

This issue was migrated from https://sourceforge.net/p/avarice/patches/15/

avrs-admin commented 2 years ago

andyz 2010-05-01 07:44:12

Patch agains CVS as of 1-May-2009

avrs-admin commented 2 years ago

joerg_wunsch 2011-08-30 13:42:18

I applied your patch, many thanks!

Actually, I went a lot further, and fixed all warnings for GCC 4.x, so I could enable -Wall -Wextra by default now. As some of the warnings are silenced by #pragma GCC diagnostic (really avoiding does not make sense), GCC 3.x users might use --disable-warning in configure though.

avrs-admin commented 2 years ago

joerg_wunsch 2011-08-30 13:42:19