diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-01-02 19:01:24 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-01-02 19:01:24 +0100 |
commit | b8874015bd1d09b1b72293c0b5be422fd375e04b (patch) | |
tree | a517b1ab5b8c3cc5fed96e4c13b3d94c0f1d5461 | |
parent | a4cfbec3095eab68d3b21600023ad1efd89928d5 (diff) | |
download | mig-b8874015bd1d09b1b72293c0b5be422fd375e04b.tar.gz mig-b8874015bd1d09b1b72293c0b5be422fd375e04b.tar.bz2 mig-b8874015bd1d09b1b72293c0b5be422fd375e04b.zip |
Fix spurious warning on MACH_MSG_TYPE_POLYMORPHIC value
* utils.c (WriteStaticLongDecl): Explicitly cast name to unsigned short to
ignore truncation of MACH_MSG_TYPE_POLYMORPHIC i.e. -1.
-rw-r--r-- | utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -284,7 +284,7 @@ WriteStaticLongDecl(FILE *file, const ipc_type_t *it, strdealloc(dealloc)); fprintf(file, "\t\t/* msgt_unused = */\t\t0\n"); fprintf(file, "\t},\n"); - fprintf(file, "\t\t/* msgtl_name = */\t%s,\n", + fprintf(file, "\t\t/* msgtl_name = */\t(unsigned short) %s,\n", inname ? it->itInNameStr : it->itOutNameStr); fprintf(file, "\t\t/* msgtl_size = */\t%d,\n", it->itSize); fprintf(file, "\t\t/* msgtl_number = */\t%d,\n", it->itNumber); |