From: Yann Ylavic Date: Tue, 6 Sep 2016 12:07:39 +0000 (+0000) Subject: http_config: follow up to r1702948: maybe unused, yet maybe usefull too. X-Git-Tag: 2.5.0-alpha~1168 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b562b93318fd4206750066c9f4d59788e835389;p=apache http_config: follow up to r1702948: maybe unused, yet maybe usefull too. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1759415 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/http_config.h b/include/http_config.h index 4a8eb0e61c..2982a8d2e8 100644 --- a/include/http_config.h +++ b/include/http_config.h @@ -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