]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/draco/fix-compile-error-uwp.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / draco / fix-compile-error-uwp.patch
1 diff --git a/src/draco/io/parser_utils.cc b/src/draco/io/parser_utils.cc
2 index 6e42a58..3c302b9 100644
3 --- a/src/draco/io/parser_utils.cc
4 +++ b/src/draco/io/parser_utils.cc
5 @@ -160,7 +160,9 @@ bool ParseSignedInt(DecoderBuffer *buffer, int32_t *value) {
6 if (!ParseUnsignedInt(buffer, &v)) {
7 return false;
8 }
9 - *value = (sign < 0) ? -v : v;
10 + if (sign < 0)
11 + v *= -1;
12 + *value = v;
13 return true;
14 }
15
16 diff --git a/CMakeLists.txt b/CMakeLists.txt
17 index 7e79da7..c4d9880 100644
18 --- a/CMakeLists.txt
19 +++ b/CMakeLists.txt
20 @@ -153,6 +153,10 @@ if(ENABLE_EXTRA_SPEED)
21 endif()
22 endif()
23
24 +if (MSVC)
25 + add_compile_options(/wd4996)
26 +endif()
27 +
28 # Generate a version file containing repository info.
29 include(FindGit)
30 find_package(Git)