Cleanup: quiet undeclared variable warnings

This commit is contained in:
Campbell Barton
2019-02-23 19:17:30 +11:00
parent af5cfa7544
commit 702a2ba0ef
7 changed files with 10 additions and 1 deletions

View File

@@ -148,6 +148,7 @@ void CLG_logref_init(CLG_LogRef *clg_ref);
/** Declare outside function, declare as extern in header. */
#define CLG_LOGREF_DECLARE_GLOBAL(var, id) \
static CLG_LogRef _static_ ## var = {id}; \
extern CLG_LogRef *var; \
CLG_LogRef *var = &_static_ ## var
/** Initialize struct once. */