From c13a355cf23f2f9d2723dcf61691bafc64d2f264 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 5 Nov 2018 11:38:16 +1030 Subject: [PATCH] subdaemon: suppress overzealous _FORTIFY_SOURCE warning. Ubuntu defines _FORTIFY_SOURCE when compiling with optimization. This insanity is the result. Signed-off-by: Rusty Russell --- common/subdaemon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/subdaemon.c b/common/subdaemon.c index 61abfd6f8..a9e29cefb 100644 --- a/common/subdaemon.c +++ b/common/subdaemon.c @@ -43,7 +43,10 @@ void subdaemon_setup(int argc, char *argv[]) if (streq(argv[i], "--debugger")) { char *cmd = tal_fmt(NULL, "${DEBUG_TERM:-gnome-terminal --} gdb -ex 'attach %u' %s &", getpid(), argv[0]); fprintf(stderr, "Running %s\n", cmd); - system(cmd); + /* warn_unused_result is fascist bullshit. + * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425 */ + if (system(cmd)) + ; /* Continue in the debugger. */ kill(getpid(), SIGSTOP); }