]> granicus.if.org Git - icinga2/commitdiff
Fix some more compiler warnings.
authorMichael Friedrich <michael.friedrich@netways.de>
Tue, 17 Dec 2013 17:33:17 +0000 (18:33 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Tue, 17 Dec 2013 17:34:05 +0000 (18:34 +0100)
Refs #5348

components/livestatus/statehisttable.cpp

index 506e81ed15abd4b0eff443ee12d366a9e14af384..d233803c99a0f38d895482f9e79682783e7a34eb 100644 (file)
@@ -71,7 +71,6 @@ void StateHistTable::UpdateLogCache(const Dictionary::Ptr& bag, int line_count,
        String host_name = bag->Get("host_name");
        String service_description = bag->Get("service_description");
        unsigned long state = bag->Get("state");
-       int log_class = bag->Get("log_class");
        int log_type = bag->Get("log_type");
        String state_type = bag->Get("state_type"); //SOFT, HARD, STARTED, STOPPED, ...
        String log_line = bag->Get("message"); /* use message from log table */
@@ -131,7 +130,6 @@ void StateHistTable::UpdateLogCache(const Dictionary::Ptr& bag, int line_count,
                }
 
                /* state duration */
-               bool gone = state_hist_bag->Get("gone"); /* this requires initial state logging and setting it if not found TODO */
 
                /* determine service notifications notification_period and compare against current timestamp */
                bool in_notification_period = true;