[asterisk-bugs] [Asterisk 0013070]: [patch] put 'static' at beginning of declarations

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Jul 14 10:18:34 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13070 
====================================================================== 
Reported By:                gknispel_proformatique
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13070
Category:                   General
Reproducibility:            N/A
Severity:                   tweak
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 130632 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-13-2008 19:45 CDT
Last Modified:              07-14-2008 10:18 CDT
====================================================================== 
Summary:                    [patch] put 'static' at beginning of declarations
Description: 
Attachement "illustration_const_static" shows that GCC prefers when static
is at the beginning of declarations.
The attached patch move them there for the trunk.

It has been produced by
for each in `svnrgrep -l 'const static' .` ; do sed -e "s/const
static/static const/g" -i $each ; done
then manual edition of channels/misdn/isdn_lib.c then manual inspection of
the whole result then build test.

====================================================================== 

---------------------------------------------------------------------- 
 mvanbaak - 07-14-08 10:18  
---------------------------------------------------------------------- 
nice one.
Maybe we can enable the -W for in --enable-dev-mode.
I'll have a look at the output of it on trunk later today. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-14-08 10:18  mvanbaak       Note Added: 0090207                          
======================================================================




More information about the asterisk-bugs mailing list