Fix build on NetBSD: Walkaround compiler strictness regarding const conversion
authorKamil Rytarowski <n54@gmx.com>
Thu, 4 Feb 2016 19:07:04 +0000 (20:07 +0100)
committerKamil Rytarowski <n54@gmx.com>
Thu, 4 Feb 2016 19:07:04 +0000 (20:07 +0100)
commit5f38e169674d3970bc97d61b5a14b28027ebc0cb
tree59e04f4c3e966ff5ac186a1d3127e564248ca37d
parente36834bdee7d14edc404428ec7c6eed661b78f5a
Fix build on NetBSD: Walkaround compiler strictness regarding const conversion

This commit walks-around over-cautious Clang/LLVM alerts like:

/tmp/pkgsrc-tmp/wip/coreclr-git/work/coreclr/src/pal/tests/palsuite/c_runtime/sscanf/test4/test4.c:32:33: error: implicit conversion from
                'int' to 'short' changes value from 65535 to -1 [-Werror,-Wconstant-conversion]
 DoShortNumTest("-1", "%hd", 65535);
                ^~~~~~~~~~~~~~~~~~~

This closes #2968 "implicit conversion from 'int' to 'short' changes value from 65535 to -1"

Thanks Jan Kotas (Microsoft) for pointers.
src/pal/tests/palsuite/c_runtime/sscanf/test4/test4.c
src/pal/tests/palsuite/c_runtime/sscanf/test5/test5.c
src/pal/tests/palsuite/c_runtime/sscanf/test6/test6.c
src/pal/tests/palsuite/c_runtime/sscanf/test7/test7.c
src/pal/tests/palsuite/c_runtime/sscanf/test8/test8.c
src/pal/tests/palsuite/c_runtime/swscanf/test4/test4.c
src/pal/tests/palsuite/c_runtime/swscanf/test5/test5.c
src/pal/tests/palsuite/c_runtime/swscanf/test6/test6.c
src/pal/tests/palsuite/c_runtime/swscanf/test7/test7.c
src/pal/tests/palsuite/c_runtime/swscanf/test8/test8.c