Misra 12.1 violation in MIN/MAX macros
parent
65fb5a48e7
commit
578ef22d52
|
@ -27,12 +27,12 @@
|
|||
#define MIN(a,b) \
|
||||
({ __typeof__ (a) _a = (a); \
|
||||
__typeof__ (b) _b = (b); \
|
||||
_a < _b ? _a : _b; })
|
||||
(_a < _b) ? _a : _b; })
|
||||
|
||||
#define MAX(a,b) \
|
||||
({ __typeof__ (a) _a = (a); \
|
||||
__typeof__ (b) _b = (b); \
|
||||
_a > _b ? _a : _b; })
|
||||
(_a > _b) ? _a : _b; })
|
||||
|
||||
#define MAX_RESP_LEN 0x40
|
||||
|
||||
|
|
Loading…
Reference in New Issue