mirror of
https://github.com/jorio/Pomme.git
synced 2024-11-27 05:49:18 +00:00
Fix GCC/clang unused parameter warnings on memory no-ops
This commit is contained in:
parent
717092660c
commit
cf21b9a7a8
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user