This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/3] Add DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION
- From: Nick Clifton <nickc at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>, binutils at sourceware dot org
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 1 Jun 2018 08:57:20 +0100
- Subject: Re: [PATCH 2/3] Add DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION
- References: <20180521121557.16535-1-hjl.tools@gmail.com> <20180521121557.16535-2-hjl.tools@gmail.com>
Hi H.J.
> +# if __GNUC__ >= 8
> +# define DIAGNOSTIC_IGNORE_STRINGOP_TRUNCATION \
> + DIAGNOSTIC_IGNORE ("-Wstringop-truncation")
> +# endif
> +#endif
Presumably the Wstringop-truncation bug will be fixed in gcc 8.1
so shouldn't the test check the revision number as well ?
Cheers
Nick