[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:36:25 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13070
======================================================================
Reported By: gknispel_proformatique
Assigned To: Corydon76
======================================================================
Project: Asterisk
Issue ID: 13070
Category: General
Reproducibility: N/A
Severity: tweak
Priority: normal
Status: assigned
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:36 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.
======================================================================
----------------------------------------------------------------------
svnbot - 07-14-08 10:36
----------------------------------------------------------------------
Repository: asterisk
Revision: 130697
U trunk/channels/chan_unistim.c
U trunk/channels/h323/ast_h323.cxx
U trunk/channels/misdn/isdn_lib.c
U trunk/include/asterisk/module.h
------------------------------------------------------------------------
r130697 | tilghman | 2008-07-14 10:36:17 -0500 (Mon, 14 Jul 2008) | 7
lines
Swap "static" and "const", so that "static" appears at the beginning of
each
declaration (suppresses a warning).
(closes issue http://bugs.digium.com/view.php?id=13070)
Reported by: gknispel_proformatique
Patches:
asterisk_trunk_const_static.patch uploaded by gknispel (license
261)
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=130697
Issue History
Date Modified Username Field Change
======================================================================
07-14-08 10:36 svnbot Note Added: 0090209
======================================================================
More information about the asterisk-bugs
mailing list