[build] fix IAR and Keil build warnings (#2436)

* Apply fixes for IAR

Signed-off-by: Robert Lubos <[email protected]>

* Apply fixes for Keil

Signed-off-by: Robert Lubos <[email protected]>
This commit is contained in:
Robert Lubos
2017-12-21 16:38:13 +00:00
committed by Jonathan Hui
parent 23d149844c
commit effbb4de81
5 changed files with 7 additions and 4 deletions
@@ -162,6 +162,7 @@
*/
#if defined(__CC_ARM)
_Pragma("diag_suppress=111")
_Pragma("diag_suppress=128")
#endif
#endif // OPENTHREAD_CORE_NRF52840_CONFIG_H_
+3 -1
View File
@@ -243,8 +243,10 @@ extern "C" {
#define OT_UNREACHABLE_CODE(CODE) \
_Pragma("diag_suppress=Pe111") \
_Pragma("diag_suppress=Pe128") \
CODE \
_Pragma("diag_default=Pe111")
_Pragma("diag_default=Pe111") \
_Pragma("diag_default=Pe128")
#elif defined(__CC_ARM)
+1 -1
View File
@@ -392,4 +392,4 @@ template<> Utils::SupervisionListener &Instance::Get(void)
return GetThreadNetif().GetSupervisionListener();
}
} // namespance ot
} // namespace ot
+1 -1
View File
@@ -1042,7 +1042,7 @@ void Mac::HandleTransmitDone(otRadioFrame *aFrame, otRadioFrame *aAckFrame, otEr
default:
assert(false);
ExitNow();
OT_UNREACHABLE_CODE(ExitNow());
}
// Determine whether a CSMA retry is required.
+1 -1
View File
@@ -161,7 +161,7 @@ private:
* This class implements Extended MAC Address TLV generation and parsing.
*
*/
OT_TOOL_PACKED_BEGIN;
OT_TOOL_PACKED_BEGIN
class ThreadExtMacAddressTlv: public ThreadTlv
{
public: