[asterisk-commits] mjordan: branch 11 r434708 - /branches/11/main/event.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Apr 11 10:34:45 CDT 2015


Author: mjordan
Date: Sat Apr 11 10:34:43 2015
New Revision: 434708

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=434708
Log:
main/event: Remove unnecessary assignment of negative value to enum

When cleaning up some clang compiler warnings, the comparison of a negative
value to an unsigned enum was removed. However, the initial assignment of a
negative value to said enum remained in the variable declaration. This patch
removes that assignment.

Thanks to ibercom in #asterisk-bugs for pointing it out.

Modified:
    branches/11/main/event.c

Modified: branches/11/main/event.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/event.c?view=diff&rev=434708&r1=434707&r2=434708
==============================================================================
--- branches/11/main/event.c (original)
+++ branches/11/main/event.c Sat Apr 11 10:34:43 2015
@@ -724,7 +724,7 @@
 {
 	struct ast_event *event;
 	struct ast_event_sub *sub;
-	enum ast_event_type event_type = -1;
+	enum ast_event_type event_type;
 	int found = 0;
 	struct ast_event_ie_val *ie_val;
 




More information about the asterisk-commits mailing list