From 7882e007770f47b57cad494592f84e45b2f5f03f Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 23 Feb 2016 11:59:53 +0100 Subject: [PATCH] include/types.h: init members in ctor CID 1351708 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member code is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- src/include/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/types.h b/src/include/types.h index 663430eab9905..38f7515326faa 100644 --- a/src/include/types.h +++ b/src/include/types.h @@ -460,7 +460,7 @@ __s32 ceph_to_host_errno(__s32 e); struct errorcode32_t { int32_t code; - errorcode32_t() {} + errorcode32_t() : code(0) {} // cppcheck-suppress noExplicitConstructor errorcode32_t(int32_t i) : code(i) {} -- 2.39.5