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; -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- svn-commits mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/svn-commits