[Ada] Add second warning for convention C_Variadic_n
Pierre-Marie de Rodat
derodat@adacore.com
Thu Jun 18 09:13:20 GMT 2020
This adds a second warning related to the new C_Variadic_n convention,
for the cases where the aspect/pragma is applied to a subprogram with
exactly n parameters since, in this case, the aspect/pragma is useless.
The warning is given as such:
btest.ads:16:05: warning: subprogram should have at least 4 parameters
for an aspect/pragma C_Variadic_3.
Tested on x86_64-pc-linux-gnu, committed on trunk
2020-06-18 Eric Botcazou <ebotcazou@adacore.com>
gcc/ada/
* sem_prag.adb (Process_Convention): Give a warning on C_Variadic_n
being applied to a subprogram with exactly n parameters.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 938 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200618/92579f30/attachment-0001.bin>
More information about the Gcc-patches
mailing list