vcpkg/ports/fmt/fix-warning4189.patch
Matt Haynie 9a7d5a29dd
[fmt] Fix an easily avoidable compilation warning (#18622)
* Fix an unconditional #pragma warning breaking other compilers.

* Increase fmt version

* re-ran vcpkg x-add-version --all --overwrite-version, this time it produced a different result for some reason
2021-07-01 08:26:35 -07:00

15 lines
321 B
Diff

diff --git a/include/fmt/format.h b/include/fmt/format.h
index 4e96539..0f1d179 100644
--- a/include/fmt/format.h
+++ b/include/fmt/format.h
@@ -33,6 +33,9 @@
#ifndef FMT_FORMAT_H_
#define FMT_FORMAT_H_
+#ifdef _MSC_VER
+#pragma warning(disable:4189)
+#endif
#include <algorithm>
#include <cerrno>
#include <cmath>