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(+) (limited to 'Utilities/cmliblzma') diff --git a/Utilities/cmliblzma/common/sysdefs.h b/Utilities/cmliblzma/common/sysdefs.h index 737f85a093..22f487b9e6 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 v1.2.1