summaryrefslogtreecommitdiff
path: root/include/pam_authenticate.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2019-02-14 09:48:25 +0300
committerEd Tanous <ed.tanous@intel.com>2019-03-23 01:04:15 +0300
commit6ea007a2faec52ad62680015d2a3f00371a1e351 (patch)
tree587875f7488b745a1f33952ba8952e5869f0f6a6 /include/pam_authenticate.hpp
parent8bd25ccda8030e5725ecdf5fa64d6083040ddf8a (diff)
downloadbmcweb-6ea007a2faec52ad62680015d2a3f00371a1e351.tar.xz
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 <ed@tanous.net>
Diffstat (limited to 'include/pam_authenticate.hpp')
-rw-r--r--include/pam_authenticate.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pam_authenticate.hpp b/include/pam_authenticate.hpp
index f211a29ec7..1469aef728 100644
--- a/include/pam_authenticate.hpp
+++ b/include/pam_authenticate.hpp
@@ -25,7 +25,7 @@ inline int pamFunctionConversation(int numMsg, const struct pam_message** msg,
std::strcpy(pass, appPass);
*resp = reinterpret_cast<pam_response*>(
- calloc(numMsg, sizeof(struct pam_response)));
+ calloc(static_cast<size_t>(numMsg), sizeof(struct pam_response)));
if (resp == nullptr)
{