[En-Nut-Discussion] Yagarto from 23.12.2009 and newlib again...

Ole Reinhardt ole.reinhardt at embedded-it.de
Wed Feb 3 12:10:34 CET 2010


Hi!

> Ok, in building Nut/OS it is a bit different than in compiling user 
> software. So here is the log from Nut/OS Configurator:
> 
> cc1.exe: warnings being treated as errors
> ../../nut/pro/httpopt.c: In function 'NutHttpURLEncode':
> ../../nut/pro/httpopt.c:129: error: array subscript has type 'char'
> ../../nut/pro/httpopt.c:140: error: array subscript has type 'char'
> make[1]: *** [httpopt.o] Error 1
> make: *** [all] Error 2
> 13:38:45: ----- 'make all' failed with error 2 -----

Im still using Newlib 1.17.x, no problems there... Perhaps I'll build a
new toolchain and try it with 1.18.0 again. Shure we shoudl try to fix
these problems. isalnum expects an int instead of a char as it is able
to accept EOF too (which is a int constant).

Just use a cast: isalnum((int)(*ptr1))

Have you fixed the code? Perhaps you could provide a patch? Does it
still compiles with the older versions of newlib and with other
toolchains (AVR for example)?

Bye,

Ole

-- 

Thermotemp GmbH, Embedded-IT

Embedded Hard-/ Software and Open Source Development, 
Integration and Consulting

Geschäftsstelle Siegen - Steinstraße 67 - D-57072 Siegen - 
tel +49 (0)271 5513597, +49 (0)271-73681 - fax +49 (0)271 736 97

Hauptsitz - Hademarscher Weg 7 - 13503 Berlin
Tel +49 (0)30 4315205 - Fax +49 (0)30 43665002
Geschäftsführer: Jörg Friedrichs, Ole Reinhardt
Handelsregister Berlin Charlottenburg HRB 45978 UstID DE 156329280 




More information about the En-Nut-Discussion mailing list