Skip to content

Commit a44f45c

Browse files
Fix -Wenum-compare warnings
1 parent 0cb7f76 commit a44f45c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/perfdata/graphitewriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ void GraphiteWriter::CheckResultHandler(const Checkable::Ptr& checkable, const C
288288
std::vector<std::pair<String, double>> metadata;
289289
if (GetEnableSendMetadata()) {
290290
metadata = {
291-
{"state", service ? service->GetState() : host->GetState()},
291+
{"state", service ? static_cast<unsigned int>(service->GetState()) : static_cast<unsigned int>(host->GetState())},
292292
{"current_attempt", checkable->GetCheckAttempt()},
293293
{"max_check_attempts", checkable->GetMaxCheckAttempts()},
294294
{"state_type", checkable->GetStateType()},

0 commit comments

Comments
 (0)