]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
main/event: Remove unnecessary assignment of negative value to enum
authorMatthew Jordan <mjordan@digium.com>
Sat, 11 Apr 2015 15:34:43 +0000 (15:34 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 11 Apr 2015 15:34:43 +0000 (15:34 +0000)
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.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@434708 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/event.c

index 617f28a6df302fcf3d7f12e3975b73896fc17f6c..5796aab19033fe10a9b9d1144fbe4b61da95beb5 100644 (file)
@@ -724,7 +724,7 @@ void ast_event_report_subs(const struct ast_event_sub *event_sub)
 {
        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;