BartmanAbyss / vscode-amiga-debug

One-stop Visual Studio Code Extension to compile, debug and profile Amiga C/C++ programs compiled by the bundled gcc 12.2 with the bundled WinUAE/FS-UAE.
GNU General Public License v3.0
315 stars 39 forks source link

Fix OS function calls so that they don't produce `-Wold-style-declaration` warning #10

Closed tehKaiN closed 4 years ago

tehKaiN commented 4 years ago

When compiling with -Wextra I get tons of messages near os fn calls:

warning: 'register' is not at beginning of declaration [-Wold-style-declaration]

Of course adding -Wno-old-style-declaration to compile flags fixes problem, but I think this shouldn't be required.

This is of course a very low priority, but a nice fix to have in future.