diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-14 15:44:07 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-14 15:44:07 +0000 |
commit | 22e3986f8e05a49f5ebd6ad00bf4d6ab546cdac2 (patch) | |
tree | a02974efdea20c811bacb24f90985da6e7c08cab /include | |
parent | 68df4f8607fab52a93018f8798247cb348085198 (diff) |
Swap "static" and "const", so that "static" appears at the beginning of each
declaration (suppresses a warning).
(closes issue #13070)
Reported by: gknispel_proformatique
Patches:
asterisk_trunk_const_static.patch uploaded by gknispel (license 261)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@130697 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/module.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h index bb58cb268..f466395c0 100644 --- a/include/asterisk/module.h +++ b/include/asterisk/module.h @@ -258,7 +258,7 @@ void ast_module_unref(struct ast_module *); { \ ast_module_unregister(&__mod_info); \ } \ - const static __attribute__((unused)) struct ast_module_info *ast_module_info = &__mod_info + static const __attribute__((unused)) struct ast_module_info *ast_module_info = &__mod_info #define AST_MODULE_INFO_STANDARD(keystr, desc) \ AST_MODULE_INFO(keystr, AST_MODFLAG_DEFAULT, desc, \ @@ -271,7 +271,7 @@ void ast_module_unref(struct ast_module *); /* forward declare this pointer in modules, so that macro/function calls that need it can get it, since it will actually be declared and populated at the end of the module's source file... */ -const static __attribute__((unused)) struct ast_module_info *ast_module_info; +static const __attribute__((unused)) struct ast_module_info *ast_module_info; #if !defined(EMBEDDED_MODULE) #define __MODULE_INFO_SECTION @@ -352,7 +352,7 @@ static void __restore_globals(void) { \ ast_module_unregister(&__mod_info); \ } \ - const static struct ast_module_info *ast_module_info = &__mod_info + static const struct ast_module_info *ast_module_info = &__mod_info #define AST_MODULE_INFO_STANDARD(keystr, desc) \ AST_MODULE_INFO(keystr, AST_MODFLAG_DEFAULT, desc, \ |