]> git.ipfire.org Git - thirdparty/gcc.git/commit
c: Suppress -Wdeprecated-non-prototype warnings for builtins
authorFlorian Weimer <fweimer@redhat.com>
Thu, 1 May 2025 17:06:45 +0000 (19:06 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 1 Aug 2025 07:37:57 +0000 (09:37 +0200)
commit3913d958e203dbf3c4a0527e7bc03c684e3f05a4
tree809924ea169893e3bd3ce328cf8d4855bf513dc9
parentcb06e4a961b85a06e666f03124f9bd0f99e79f8c
c: Suppress -Wdeprecated-non-prototype warnings for builtins

Builtins defined with BT_FN_INT_VAR etc. show as functions without
a prototype and trigger the warning.

gcc/c/

PR c/119950
* c-typeck.cc (convert_arguments): Check for built-in
function declaration before warning.

gcc/testsuite/

* gcc.dg/Wdeprecated-non-prototype-5.c: New test.

(cherry picked from commit b6d37ec1dd2a228d94e7b5b438f3aa53684316bc)
gcc/c/c-typeck.cc
gcc/testsuite/gcc.dg/Wdeprecated-non-prototype-5.c [new file with mode: 0644]