From 28534ea921a4109ed9e548b7bccbee0d41ecd04d Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Mon, 14 Jul 2008 15:44:07 +0000 Subject: 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 --- include/asterisk/module.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/asterisk/module.h') 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, \ -- cgit v1.2.3