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

[bug #13] build failed with gcc 4.4.0 #13

Closed avrs-admin closed 2 years ago

avrs-admin commented 2 years ago

vladablack 2009-06-25 08:58:22

Build failed on: g++ -DHAVE_CONFIG_H -I. -g -O2 -MT jtag2usb.o -MD -MP -MF .deps/jtag2usb.Tpo -c -o jtag2usb.o jtag2usb.cc jtag2usb.cc: In function ‘usb_dev_handle opendev(const char, emulator, int&)’: jtag2usb.cc:98: error: invalid conversion from ‘const char’ to ‘char

I'm using gcc 4.4.0. Same problem is in 2.10 and current cvs version.

config.log

This issue was migrated from https://sourceforge.net/p/avarice/bugs/13/

avrs-admin commented 2 years ago

joerg_wunsch 2009-06-25 09:32:46

This is supposed to be fixed in CVS, please verify the fix works for you.

This actually uncovered a larger bug behind: the function could really modify the argument string passed to it which is supposed to be `const'. Thus, I'm now allocating a local copy, and operate on that one.

avrs-admin commented 2 years ago

joerg_wunsch 2009-06-25 09:32:46