-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Description
The following warnings are emitted when building boost container using the latest MSVC (Visual Studio 2022) compiler for x64 windows:
libs\container\src\dlmalloc_2_8_6.c(4294): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(4432): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(4460): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(4463): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(4505): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(4596): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(4597): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(4624): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(4895): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(4917): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(5186): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(5229): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(5273): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(5423): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(5443): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(5530): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(5531): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(5558): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(5736): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_2_8_6.c(5779): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_ext_2_8_6.c(209): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_ext_2_8_6.c(210): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_ext_2_8_6.c(237): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_ext_2_8_6.c(728): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_ext_2_8_6.c(728): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_ext_2_8_6.c(1006): warning C4146: unary minus operator applied to unsigned type, result still unsigned
libs\container\src\dlmalloc_ext_2_8_6.c(1014): warning C4146: unary minus operator applied to unsigned type, result still unsigned
Environment
Windows x64
Compiler version: MSVC 19.44.35209.0
Repro Steps
My organization requires addressing any suppressed warnings related to C4146 as it is considered a security-critical warning. These warnings can be seen here: https://godbolt.org/z/xPfe9Eqfc
This warning is mainly found in the dlmalloc_2_8_6.c and dlmalloc_ext_2_8_6.c files. I wanted to report this in case it can be safely addressed. Would it be possible to resolve these warnings?
Metadata
Metadata
Assignees
Labels
No labels