MSVC: lower C4100 warning level from 4 to 3

This better aligns with OSX/Linux warnings.

Although `__pragma(warning(suppress:4100))` is not the same as
`__attribute__((__unused__))` in gcc (which only affects the attribute
instead of the line), it still seems to be better to use it than to
hide the warning entirely.
This commit is contained in:
2023-02-04 03:12:23 -03:00
committed by Germano Cavalcante
parent f4db58844d
commit db4e7616f3
13 changed files with 45 additions and 17 deletions

View File

@@ -12,6 +12,9 @@
#if defined(__GNUC__) || defined(__clang__)
# pragma GCC diagnostic error "-Wmissing-prototypes"
# pragma GCC diagnostic ignored "-Wunused-parameter"
#elif defined(_MSC_VER)
/* Suppress unreferenced formal parameter warning. */
# pragma warning(disable : 4100)
#endif
/* python, will come back */