Browse Source

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.
Brad King 7 years ago
parent
commit
2461dd79e5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Utilities/cmliblzma/common/sysdefs.h

+ 1 - 0
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