Add GCC diagnostics to suppress unused-parameter warnings

master
Andres Amaya Garcia 2015-12-02 16:16:32 +00:00
parent ea51baa33e
commit a4a6412210
1 changed files with 1 additions and 0 deletions

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 \