libc: types: add a comment to the "wrong definition" code
Add an explanation comment, so no one in the future will try to change that part of the code. Add parasoft tags to suppress a violation in static analysis tool Signed-off-by: Maksim Masalski <maksim.masalski@intel.com>
This commit is contained in:
parent
6d86e4836f
commit
8535a01d92
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ typedef unsigned int mode_t;
|
||||||
#if !defined(__ssize_t_defined)
|
#if !defined(__ssize_t_defined)
|
||||||
#define __ssize_t_defined
|
#define __ssize_t_defined
|
||||||
|
|
||||||
|
/* parasoft suppress item MISRAC2012-RULE_20_4-a item MISRAC2012-RULE_20_4-b
|
||||||
|
* "Trick compiler to make sure the type of ssize_t won't be
|
||||||
|
* unsigned long. View details in commit b889120"
|
||||||
|
*/
|
||||||
#define unsigned signed
|
#define unsigned signed
|
||||||
typedef __SIZE_TYPE__ ssize_t;
|
typedef __SIZE_TYPE__ ssize_t;
|
||||||
#undef unsigned
|
#undef unsigned
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue