From 6ea007a2faec52ad62680015d2a3f00371a1e351 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Wed, 13 Feb 2019 22:48:25 -0800 Subject: bmcweb: Fix a bunch of warnings bmcweb classically has not taken a strong opinion on warnings. With this commit, that policy is changing, and bmcweb will invoke the best warnings we are able to enable, and turn on -Werror for all builds. This is intended to reduce the likelihood of hard-to-debug situations that the compiler coulve caught early on. Change-Id: I57474410821e82666b3a108cfd0db7d070e8900a Signed-off-by: Ed Tanous --- include/dbus_monitor.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/dbus_monitor.hpp') diff --git a/include/dbus_monitor.hpp b/include/dbus_monitor.hpp index 1b82697f7a..cddafc8c06 100644 --- a/include/dbus_monitor.hpp +++ b/include/dbus_monitor.hpp @@ -150,7 +150,7 @@ template void requestRoutes(Crow& app) nlohmann::json::iterator paths = j.find("paths"); if (paths != j.end()) { - int interfaceCount = thisSession.interfaces.size(); + size_t interfaceCount = thisSession.interfaces.size(); if (interfaceCount == 0) { interfaceCount = 1; -- cgit v1.2.3