Clean build warnings 65/23965/3
authorGeorge Nash <george.nash@intel.com>
Fri, 19 Jan 2018 23:30:31 +0000 (15:30 -0800)
committerRick Bell <richard.s.bell@intel.com>
Thu, 1 Feb 2018 23:14:53 +0000 (23:14 +0000)
commitac15361434243c5b3f2c570d87f2b37f457a1da0
tree2dc60e4f66038a06110ee7c9975a538f1f9046a7
parent714f75648f4fe09cb7f9d2f6d912bab3c8a5a662
Clean build warnings

This cleans new build warnings discovered when building
iotivity with GCC 7.2.1

-Werror=format-truncation
Fixed in json2cbor that was a result of incorrect buffer size in snprintf

-Werror=implicit-fallthrough
With the addition of the [[fallthrough]] keyword in C++17 GCC now detects
fallthrough locations. The fallthrough error can be hidden by adding
the comment "fall through" to the case that is falling though.

-Werror=pragmas and -Werror=attributes
are from the external tinyCbor code. We Ignore build warnings from extern
libraries. We may fix the warnings by working witht he external project
but it should not block any work in IoTivity.

Change-Id: I86c9fb42b987858c66698fe48e4c2a405769b004
Signed-off-by: George Nash <george.nash@intel.com>
resource/csdk/security/SConscript
resource/csdk/security/provisioning/src/pmutility.c
resource/csdk/security/src/ocsecurity.c
resource/csdk/security/tool/json2cbor.c