mirror of
https://github.com/espressif/openthread.git
synced 2026-09-02 15:20:07 +00:00
[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:
committed by
Jonathan Hui
parent
23d149844c
commit
effbb4de81
@@ -162,6 +162,7 @@
|
||||
*/
|
||||
#if defined(__CC_ARM)
|
||||
_Pragma("diag_suppress=111")
|
||||
_Pragma("diag_suppress=128")
|
||||
#endif
|
||||
|
||||
#endif // OPENTHREAD_CORE_NRF52840_CONFIG_H_
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -392,4 +392,4 @@ template<> Utils::SupervisionListener &Instance::Get(void)
|
||||
return GetThreadNetif().GetSupervisionListener();
|
||||
}
|
||||
|
||||
} // namespance ot
|
||||
} // namespace ot
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user