diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-07-14 15:44:07 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-07-14 15:44:07 +0000 |
commit | 28534ea921a4109ed9e548b7bccbee0d41ecd04d (patch) | |
tree | a02974efdea20c811bacb24f90985da6e7c08cab /include/asterisk/module.h | |
parent | c4c3e2f8754dce3e3244a9d0c1305b01e77af48e (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: https://origsvn.digium.com/svn/asterisk/trunk@130697 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/module.h')
-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, \ |