trans.c (Pragma_to_gnu): Push a diagnostics state for pragma Warnings (Off) before...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 18 Dec 2019 09:51:14 +0000 (09:51 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 18 Dec 2019 09:51:14 +0000 (09:51 +0000)
commite3371908b30b254f79f735abf66a8d17c188988a
treef3a8d751e055aaec4d0e6e9be6f90ecc73b67dc4
parentd4a45898bc44a87f076485da44912df8c461bc64
trans.c (Pragma_to_gnu): Push a diagnostics state for pragma Warnings (Off) before turning off all the...

* gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Warnings>: Push a
diagnostics state for pragma Warnings (Off) before turning off all
the warnings and only pop it for pragma Warnings (On).

From-SVN: r279519
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/warn32.adb [new file with mode: 0644]