Index: trunk/config.h.in =================================================================== --- trunk/config.h.in (revision 21404) +++ trunk/config.h.in (revision 21405) @@ -147,8 +147,19 @@ print_ternary ?signal/names/SIGQUIT/presents {#define PCB_HAVE_SIGQUIT 1} {/* #undef PCB_HAVE_SIGQUIT */} print {\n} +print {\n/* Code warnings for TODO, portable (unlike #warning) */} +if ?cc/pragma_message +then print [@ +#define DO_PRAGMA(arg) _Pragma(#arg) +#define TODO(x) DO_PRAGMA(message("TODO: " #x)) +@] +else +print {\n/* Not available */\n#define TODO(x)\n} +end +print [@ + /* The host "triplet" - it's really a pair now: machine-os */ #define HOST "@sys/sysid@" Index: trunk/scconfig/hooks.c =================================================================== --- trunk/scconfig/hooks.c (revision 21404) +++ trunk/scconfig/hooks.c (revision 21405) @@ -378,6 +378,7 @@ target_ped = get("/target/cc/argstd/pedantic"); target_pg = get("/target/cc/argstd/pg"); target_no_pie = get("/target/cc/argstd/no-pie"); + require("cc/pragma_message", 0, 0); { /* need to set debug flags here to make sure libs are detected with the modified cflags; -ansi matters in what #defines we need for some #includes */ const char *tmp, *fpic, *debug; Index: trunk/src/hid_init.c =================================================================== --- trunk/src/hid_init.c (revision 21404) +++ trunk/src/hid_init.c (revision 21405) @@ -63,7 +63,7 @@ /* Setup a "nogui" default HID */ pcb_gui = pcb_hid_nogui_get_hid(); -#warning TODO: make this configurable - use pcb_conf_cmd_is_safe() to avoid plugin injection +TODO("make this configurable - use pcb_conf_cmd_is_safe() to avoid plugin injection") tmp = pcb_concat(conf_core.rc.path.exec_prefix, PCB_DIR_SEPARATOR_S, "lib", PCB_DIR_SEPARATOR_S, "pcb-rnd", PCB_DIR_SEPARATOR_S, "plugins", PCB_DIR_SEPARATOR_S, HOST, NULL); pcb_plugin_add_dir(tmp); free(tmp);