linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Scripts: kconfig: nconf: fix _GNU_SOURCE redefined warning
@ 2016-11-27 16:28 Cheah Kok Cheong
  2016-11-28 10:39 ` Michal Marek
  0 siblings, 1 reply; 5+ messages in thread
From: Cheah Kok Cheong @ 2016-11-27 16:28 UTC (permalink / raw)
  To: yann.morin.1998; +Cc: linux-kbuild, linux-kernel, mmarek, thrust73

Fix below warning when make nconfig is run initially
or after make clean.

  HOSTCC  scripts/kconfig/nconf.o
scripts/kconfig/nconf.c:8:0: warning: "_GNU_SOURCE" redefined
 #define _GNU_SOURCE
 ^
<command-line>:0:0: note: this is the location of the previous definition

Signed-off-by: Cheah Kok Cheong <thrust73@gmail.com>
---
 scripts/kconfig/nconf.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
index d42d534..a9bc533 100644
--- a/scripts/kconfig/nconf.c
+++ b/scripts/kconfig/nconf.c
@@ -5,7 +5,9 @@
  * Derived from menuconfig.
  *
  */
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <string.h>
 #include <stdlib.h>
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-29 13:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-27 16:28 [PATCH] Scripts: kconfig: nconf: fix _GNU_SOURCE redefined warning Cheah Kok Cheong
2016-11-28 10:39 ` Michal Marek
2016-11-28 18:46   ` Cheah Kok Cheong
2016-11-28 20:29     ` Paul Bolle
2016-11-29 13:05       ` Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).