mirror of
https://github.com/nicbarker/clay.git
synced 2025-09-18 12:36:17 +00:00
[Compilers] Add a dummy function to suppress unused variable warning in GCC
This commit is contained in:
parent
d5af2c3dc0
commit
982ade4cf9
4
clay.h
4
clay.h
|
@ -102,6 +102,10 @@
|
||||||
|
|
||||||
static uint8_t CLAY__ELEMENT_DEFINITION_LATCH;
|
static uint8_t CLAY__ELEMENT_DEFINITION_LATCH;
|
||||||
|
|
||||||
|
// GCC marks the above CLAY__ELEMENT_DEFINITION_LATCH as an unused variable for files that include clay.h but don't declare any layout
|
||||||
|
// This is to suppress that warning
|
||||||
|
static inline void Clay__SuppressUnusedLatchDefinitionVariableWarning(void) { (void) CLAY__ELEMENT_DEFINITION_LATCH; }
|
||||||
|
|
||||||
// Publicly visible layout element macros -----------------------------------------------------
|
// Publicly visible layout element macros -----------------------------------------------------
|
||||||
|
|
||||||
/* This macro looks scary on the surface, but is actually quite simple.
|
/* This macro looks scary on the surface, but is actually quite simple.
|
||||||
|
|
Loading…
Reference in a new issue