diff options
| author | WebFolder OÜ <support@webfolder.io> | 2019-05-17 18:27:52 +0300 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2019-05-17 08:27:52 -0700 |
| commit | f510471ebeeec350c40c9126ce6a26dacd119227 (patch) | |
| tree | 5f60ef9892f08eda2a880aeeb77d4bdff687d4b8 /ports/jwt-cpp/fix-warning.patch | |
| parent | 9d473a69545ac648b9ea2067c007b57dfad7462b (diff) | |
| download | vcpkg-f510471ebeeec350c40c9126ce6a26dacd119227.tar.gz vcpkg-f510471ebeeec350c40c9126ce6a26dacd119227.zip | |
[jwt-cpp] Add new port (#6498)
Diffstat (limited to 'ports/jwt-cpp/fix-warning.patch')
| -rw-r--r-- | ports/jwt-cpp/fix-warning.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ports/jwt-cpp/fix-warning.patch b/ports/jwt-cpp/fix-warning.patch new file mode 100644 index 000000000..d013a7782 --- /dev/null +++ b/ports/jwt-cpp/fix-warning.patch @@ -0,0 +1,31 @@ +diff --git a/include/jwt-cpp/base.h b/include/jwt-cpp/base.h +index dfca7fc..4d05c0b 100644 +--- a/include/jwt-cpp/base.h ++++ b/include/jwt-cpp/base.h +@@ -2,6 +2,10 @@ + #include <string> + #include <array> + ++#ifdef _MSC_VER ++#pragma warning(disable : 4267) ++#endif ++ + namespace jwt { + namespace alphabet { + struct base64 { +diff --git a/include/jwt-cpp/jwt.h b/include/jwt-cpp/jwt.h +index ec56810..313cef2 100644 +--- a/include/jwt-cpp/jwt.h ++++ b/include/jwt-cpp/jwt.h +@@ -12,6 +12,11 @@ + #include <openssl/ec.h> + #include <openssl/err.h> + ++#ifdef _MSC_VER ++#pragma warning(disable : 4267) ++#pragma warning(disable : 4067) ++#endif ++ + //If openssl version less than 1.1 + #if OPENSSL_VERSION_NUMBER < 269484032 + #define OPENSSL10 |
