mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
liblzma: Suppress MSVC warning parameter difference warning
Some `.c` sources add `restrict` to their pointer types to tell the optimizer that there is no aliasing. These do not appear in the corresponding `.h` declarations so MSVC warns.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
# pragma warning(push,1)
|
||||
# pragma warning(disable: 4028) /* formal parameter different from decl */
|
||||
# pragma warning(disable: 4142) /* benign redefinition of type */
|
||||
# pragma warning(disable: 4761) /* integral size mismatch in argument */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user