Add GCC diagnostics to suppress unused-parameter warnings

This commit is contained in:
Andres Amaya Garcia 2015-12-02 16:16:32 +00:00
parent ea51baa33e
commit a4a6412210

View file

@ -43,6 +43,7 @@
#elif defined (__GNUC__)
#define SVCALL(number, return_type, signature) \
_Pragma("GCC diagnostic ignored \"-Wunused-function\"") \
_Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wreturn-type\"") \
__attribute__((naked)) static return_type signature \