Add two new warnings to CI:
strict-prototypes helps prevent declaring a function with an empty argument list, e.g. int func(). In C++, that's equivalent to int func(void), but in C, that means a function that can take any number of arguments which is rarely what we want.
missing-prototypes makes sure we use static for file-only internal functions. Non-static functions should have been declared on a prototype file.
Also, fix up misc code warnings that this found.
GTK header needs to have #pragma warning suppressiong because GTK2 headers will warn on -Wstrict-prototypes, and it's included by gui.h and so we can't just turn off the warning in a couple files.
https://github.com/vim/vim/pull/13223
(8 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I mentioned in #13166, but I think we should just add these warnings to be checked in CI.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
thanks, let me squash in #13226 as well into this
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()