aboutsummaryrefslogtreecommitdiff
path: root/gitlog-to-changelog
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2024-07-18 22:25:03 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-07-18 23:30:34 +0200
commit85c1d9860d563d8c43d95d41c51d0cbd68f93c9a (patch)
treea7ab43b7414208615d4662ca91e2d24180ab65b6 /gitlog-to-changelog
parent98e07c497c9d866c0342696918a020b3f0303405 (diff)
downloadmig-85c1d9860d563d8c43d95d41c51d0cbd68f93c9a.tar.gz
mig-85c1d9860d563d8c43d95d41c51d0cbd68f93c9a.tar.bz2
mig-85c1d9860d563d8c43d95d41c51d0cbd68f93c9a.zip
Suffix complex_alignof with U to hint the compiler that it is always unsigned
I have noticed a problem when compiling rumpkernel with the new thread_get_name: gnumachUser.c: In function 'thread_get_name': gnumachUser.c:1791:37: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Werror=sign-compare] 1791 | if (mig_unlikely (msgh_size != 36 + ((OutP->nameType.msgt_number + 3) & ~3))) | ^~ gnumachUser.c:25:47: note: in definition of macro 'mig_unlikely' 25 | #define mig_unlikely(X) __builtin_expect (!! (X), 0) | ^ cc1: all warnings being treated as errors This ensures that the compiler won't cast ~3 to int since the code will be written as: 1791 | if (mig_unlikely (msgh_size != 36 + ((OutP->nameType.msgt_number + 3) & ~3U))) Message-ID: <hwbytulqiyx3ga3grvgpkgiekriqrogfv4lqasi74hqpeft7im@ipoz6pu44veo>
Diffstat (limited to 'gitlog-to-changelog')
0 files changed, 0 insertions, 0 deletions