Skip to content

Commit 5256e96

Browse files
theamirocohenYossi Levy
authored andcommitted
Fix IAR issues
1 parent 225a3bf commit 5256e96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TESTS/mbed_hal/trng/pithy/pithy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ enum {
8181
#define PITHY_PREFETCH(ptr)
8282
#endif // defined (__GNUC__) && (__GNUC__ >= 3)
8383

84-
#define PITHY_STATIC_INLINE static __inline__ PITHY_ATTRIBUTES(always_inline)
84+
#define PITHY_STATIC_INLINE static inline PITHY_ATTRIBUTES(always_inline)
8585
#define PITHY_ALIGNED(x) PITHY_ATTRIBUTES(aligned(x))
8686

8787
#if defined(NS_BLOCK_ASSERTIONS) && !defined(NDEBUG)
@@ -244,7 +244,7 @@ PITHY_STATIC_INLINE int pithy_Log2Floor(uint32_t n)
244244

245245
PITHY_STATIC_INLINE int pithy_FindLSBSetNonZero32(uint32_t n)
246246
{
247-
int i = 0, rc = 31;
247+
int i = 0, rc = 31, shift = 0;
248248
for (i = 4, shift = 1 << 4; i >= 0; --i) {
249249
const uint32_t x = n << shift;
250250
if (x != 0u) {

0 commit comments

Comments
 (0)