modified files: include/hack.h, src/decl.c, sys/unix/Makefile.src Groundwork for cleaning up the X11 sources, where gcc with the option settings specified in the OSX hints file currently generates close to 400 warnings for win/X11/*.c. lint.h is included by hack.h, and I've moved the debugpline stuff from the latter to the former to hide it better. (By rights it belongs in debug.h or something of the sort, but I didn't want to go that far.) Makefile and project dependencies need to catch up. nhStr() hides a cast to char *, and is intended to by used on string literals where it isn't feasible to maintain the 'const' attribute. (A pernicious problem with X11 code, where the include situation can become very convoluted, and many, MANY string literals are hidden behind macros to look like keyword-type tokens.) nhUse() can be used to force a fake usage on something which triggers an unused parameter warning. There are a 6 or 8 or 10 places in the core code where that applies, but so far I have't touched any of them. There's a tradeoff since it will result in some worthless code being generated and executed, but is much simpler than tacking on compiler- specific workarounds like '#pragma unused' or gcc's __attribute__ hack.
14 KiB
14 KiB