Searched hist:"3884 c44d" (Results 1 – 2 of 2) sorted by relevance
/openbmc/libpldm/src/msgbuf/ |
H A D | platform.h | 3884c44d Tue Apr 11 20:43:24 CDT 2023 Andrew Jeffery <andrew@aj.id.au> platform: pldm_msgbuf for decode_set_numeric_effecter_value_req()
Also, make it at least possible to detect incorrect use of the API by declaring `effecter_value` as a fixed-size array of 4. Misuse is detected by -Wstringop-overflow with `gcc`, however failure to uphold the requirement is ignored by `g++`, and both `clang` and `clang++`.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I5769db4d3c812d7feef994de836a8621fb4bf3cf
|
/openbmc/libpldm/include/libpldm/ |
H A D | platform.h | 3884c44d Tue Apr 11 20:43:24 CDT 2023 Andrew Jeffery <andrew@aj.id.au> platform: pldm_msgbuf for decode_set_numeric_effecter_value_req()
Also, make it at least possible to detect incorrect use of the API by declaring `effecter_value` as a fixed-size array of 4. Misuse is detected by -Wstringop-overflow with `gcc`, however failure to uphold the requirement is ignored by `g++`, and both `clang` and `clang++`.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I5769db4d3c812d7feef994de836a8621fb4bf3cf
|