]> granicus.if.org Git - apache/commitdiff
http_config: follow up to r1702948: maybe unused, yet maybe usefull too.
authorYann Ylavic <ylavic@apache.org>
Tue, 6 Sep 2016 12:07:39 +0000 (12:07 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 6 Sep 2016 12:07:39 +0000 (12:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1759415 13f79535-47bb-0310-9956-ffa450edef68

include/http_config.h

index 4a8eb0e61ca7f54f912a46a3b1646a2d6d36a3ad..2982a8d2e8e5b898006ea2f5d6712ce2bbf20ecf 100644 (file)
@@ -415,20 +415,20 @@ struct module_struct {
 };
 
 /**
- * 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
     
 /**
@@ -446,7 +446,7 @@ struct module_struct {
  */
 #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