summaryrefslogtreecommitdiff
path: root/lib/argp-help.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-08-16 19:09:00 +0200
committerBruno Haible <bruno@clisp.org>2020-08-16 19:09:00 +0200
commitce616246fc28183a9fd134db94f5f12db8e394de (patch)
tree354b97ed55cadf4c9301d3efa115eae1a45ff7ca /lib/argp-help.c
parent01c0d3a71018a6cd2355e808696712ecfc8228b4 (diff)
downloadgnulib-ce616246fc28183a9fd134db94f5f12db8e394de.tar.gz
argp: Emit a warning also with clang.
* lib/argp-help.c (__argp_short_program_name): Use #warning also on clang.
Diffstat (limited to 'lib/argp-help.c')
-rw-r--r--lib/argp-help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/argp-help.c b/lib/argp-help.c
index 73987ba66e..52260f35e8 100644
--- a/lib/argp-help.c
+++ b/lib/argp-help.c
@@ -1723,7 +1723,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 "";