From: SourceForge.net <no...@so...> - 2004-05-22 06:09:05
|
Bugs item #941458, was opened at 2004-04-24 14:28 Message generated for change (Settings changed) made by epetrich You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=941458&group_id=599 Category: None >Group: fixed >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Stas Sergeev (stsp) >Assigned to: Erik Petrich (epetrich) Summary: Problems with -Wundef and -Werror Initial Comment: Hi. I have a few preprocessor-related problems, and here at BTS there seem to be no category for the preprocessor, which is also a bug:) 1. string.h is not -Wundef-resistant. I think the fix could be as simple as the patch attached. 2. It seems -Werror doesn't work. Compiling the code like: --- #if UNDEF #error TEST #endif char main() { return 0; } --- this way: $ sdcc -Wp,-Wundef -Wp,-Werror prepr.c prepr.c:1:5: "UNDEF" is not defined still produces an asm and .ihx output, not returning an error status to "make". I think it should. Also it would be nice if sdcc is to accept the -Wundef and -Werror directly, the way gcc does, but that's really an RFE. ---------------------------------------------------------------------- >Comment By: Erik Petrich (epetrich) Date: 2004-05-22 01:09 Message: Logged In: YES user_id=635249 The bug tracker now has a "C Preprocessor" catagory. device/include/string.h 1.10 is now -Wundef compatible. src/SDCCmain.c 1.195 will now abort with a non-zero exit code (and not assemble or link) if the preprocessor returns a non-zero exit code. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=941458&group_id=599 |