Fix GCC/clang unused parameter warnings on memory no-ops

This commit is contained in:
Iliyas Jorio 2021-04-23 07:57:12 +02:00
parent 717092660c
commit cf21b9a7a8
1 changed files with 5 additions and 0 deletions

View File

@ -320,6 +320,9 @@ Boolean Button(void);
//-----------------------------------------------------------------------------
// Memory: No-op
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
// No-op in Pomme.
static inline void MaxApplZone(void) {}
@ -368,6 +371,8 @@ static inline Boolean LockPixels(PixMapHandle handle) { return true; } // no-op;
// otherwise (in 32-bit mode), returns the address unchanged.
static inline Ptr StripAddress(Ptr ptr) { return ptr; } // no-op
#pragma GCC diagnostic pop
//-----------------------------------------------------------------------------
// Memory: Handle