clang support #warning.
2020-08-16 Bruno Haible <br...@clisp.org> argp: Emit a warning also with clang. * lib/argp-help.c (__argp_short_program_name): Use #warning also on clang. diff --git a/lib/argp-help.c b/lib/argp-help.c index 9c95c16..80be8c8 100644 --- a/lib/argp-help.c +++ b/lib/argp-help.c @@ -1722,7 +1722,7 @@ __argp_short_program_name (void) /* FIXME: What now? Miles suggests that it is better to use NULL, but currently the value is passed on directly to fputs_unlocked, so that requires more changes. */ -# if __GNUC__ +# if __GNUC__ || (__clang_major__ >= 4) # warning No reasonable value to return # endif /* __GNUC__ */ return "";