[LTP] [PATCH v3 04/12] hugeshmctl01: Fix warning about signed/unsigned comparison
Petr Vorel
pvorel@suse.cz
Tue Dec 5 10:50:00 CET 2017
> The macro N_ATTACH is assumed to be a signed integer which results in
> the below warning when compiling -
> warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
> if (buf.shm_nattch != N_ATTACH + stat_time) {
> ^~
> Fix this by explicitly marking N_ATTACH to be an unsigned integer and
> fixing the resulting fallout.
> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
> ---
Acked-by: Petr Vorel <pvorel@suse.cz>
More information about the ltp
mailing list