On Thu, 23 Nov 2023 13:42:22 GMT, Magnus Ihse Bursie <i...@openjdk.org> wrote:
>> I don't know why. >> >> >> [rehn@rehn-xps ~]$ cat m.c >> int main() { >> void foo() { >> return; >> }; >> foo(); >> return 0; >> } >> [rehn@rehn-xps ~]$ gcc -Wall -Wextra -std=c89 m.c >> [rehn@rehn-xps ~]$ > > @robehn I think that is a gcc extension; not ANSI C. Yea, you are correct. Apparently the gcc extension is not turned off even if you use -ansi. clang on the other hand complains. @galderz your suggested patch is correct, can you open PR ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15138#discussion_r1403420418