On Sun, Oct 11, 2009 at 10:02:25AM +0200, Olivier Boudeville wrote: > Hello, > > In Agar 1.3.4, file agar/core/string_compat.h, line 245, the 'return > ((char *)s);' statement casts away constness (parameter was 'const char > *s'), and breaks in the user code. I guess that string s should not be > declared as const.
What compiler are you using? Can you try un-inling the function (i.e., moving it over to string_compat.c)? This is the standard strcasestr() copied from BSD libc; it does not modify the string and not declaring the s parameter as const would break other functions using it. Hopefully, de-inlining the function will prevent this warning. _______________________________________________ Agar mailing list [email protected] http://libagar.org/lists.html
