[Patch, committed] gcc/analyzer: Silence -Wpragma warns with GCC < 10

Tobias Burnus tobias@codesourcery.com
Wed Sep 23 09:16:50 GMT 2020


Now with attached commit log/patch.

On 9/23/20 11:12 AM, Tobias Burnus wrote:
> Do what most other code does (I think ada/* does not):
>
> Only set this pragma with GCC >= 10. This silences here
> 228 warnings of the kind:
>
>  analyzer.h:305:32: warning: unknown option after '#pragma GCC
> diagnostic' kind [-Wpragmas]
>
> Tobias
>
-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: committed.diff
Type: text/x-patch
Size: 1638 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200923/91db6387/attachment.bin>


More information about the Gcc-patches mailing list