Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/make



Module Name:    src
Committed By:   rillig
Date:           Sat Mar  8 20:15:03 UTC 2025

Modified Files:
        src/usr.bin/make: job.c

Log Message:
make: re-add cast for pid_t -1

POSIX only specifies that pid_t is an arithmetic type, it doesn't even
have to be an integer type. Just in case a platform defines pid_t as an
unsigned integer type, avoid a compiler warning about passing a negative
constant to an unsigned target type.

Such a platform is probably rare, as Job.pid is declared as int, not
pid_t, so there would be more compiler warnings of this kind on such a
platform.


To generate a diff of this commit:
cvs rdiff -u -r1.488 -r1.489 src/usr.bin/make/job.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index