From 2461dd79e58a51d5d56cb8391f14968d765fa072 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 6 Aug 2018 10:29:33 -0400 Subject: 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. --- Utilities/cmliblzma/common/sysdefs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Utilities/cmliblzma/common/sysdefs.h b/Utilities/cmliblzma/common/sysdefs.h index 737f85a..22f487b 100644 --- a/Utilities/cmliblzma/common/sysdefs.h +++ b/Utilities/cmliblzma/common/sysdefs.h @@ -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 -- cgit v0.12