};
/**
- * The AP_MAYBE_USELESS macro is used vor variable declarations that
+ * The AP_MAYBE_UNUSED macro is used for variable declarations that
* might potentially exhibit "unused var" warnings on some compilers if
* left untreated.
* Since static intializers are not part of the C language (C89), making
* (void) usage is not possible. However many compiler have proprietary
* mechanism to suppress those warnings.
*/
-#ifdef AP_MAYBE_USELESS
+#ifdef AP_MAYBE_UNUSED
#elif defined(__GNUC__)
-# define AP_MAYBE_USELESS(x) x __attribute__((unused))
+# define AP_MAYBE_UNUSED(x) x __attribute__((unused))
#elif defined(__LCLINT__)
-# define AP_MAYBE_USELESS(x) /*@unused@*/ x
+# define AP_MAYBE_UNUSED(x) /*@unused@*/ x
#else
-# define AP_MAYBE_USELESS(x) x
+# define AP_MAYBE_UNUSED(x) x
#endif
/**
*/
#define APLOG_USE_MODULE(foo) \
extern module AP_MODULE_DECLARE_DATA foo##_module; \
- AP_MAYBE_USELESS(static int * const aplog_module_index) = &(foo##_module.module_index)
+ AP_MAYBE_UNUSED(static int * const aplog_module_index) = &(foo##_module.module_index)
/**
* AP_DECLARE_MODULE is a convenience macro that combines a call of