[asterisk-commits] mmichelson: branch 10 r367028 - in /branches/10: ./ channels/ main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri May 18 12:50:31 CDT 2012
Author: mmichelson
Date: Fri May 18 12:50:18 2012
New Revision: 367028
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=367028
Log:
Address MISSING_BREAK static analysis reports some more.
This addresses core findings 4 and 6.
Moises Silva helped me by stating that a break could be
safely added to the case where it is added in chan_dahdi.c
In say.c, I have added a comment indicating that static analysis
complains but that it is currently unknown if this is correct.
This fixes all core findings of this type.
(closes issue ASTERISK-19662)
reported by Matthew Jordan
........
Merged revisions 367027 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/10/ (props changed)
branches/10/channels/chan_dahdi.c
branches/10/main/say.c
Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/10/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/channels/chan_dahdi.c?view=diff&rev=367028&r1=367027&r2=367028
==============================================================================
--- branches/10/channels/chan_dahdi.c (original)
+++ branches/10/channels/chan_dahdi.c Fri May 18 12:50:18 2012
@@ -8049,6 +8049,7 @@
#else
ast_log(LOG_WARNING, "Received bits changed on %s signalling?\n", sig2str(p->sig));
#endif
+ break;
case DAHDI_EVENT_PULSE_START:
/* Stop tone if there's a pulse start and the PBX isn't started */
if (!ast->pbx)
Modified: branches/10/main/say.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/say.c?view=diff&rev=367028&r1=367027&r2=367028
==============================================================================
--- branches/10/main/say.c (original)
+++ branches/10/main/say.c Fri May 18 12:50:18 2012
@@ -6125,6 +6125,9 @@
if (tm.tm_hour < 10) {
res = wait_file(chan, ints, "digits/0", lang);
}
+ /* XXX Static analysis warns of no break here. No idea if this is
+ * correct or not
+ */
case 'k':
/* 24-Hour */
if (!(tm.tm_hour % 10) || tm.tm_hour < 10) {
More information about the asterisk-commits
mailing list