aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-11-18 19:46:34 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-11-18 20:02:45 +0300
commit6c9370843e7e74f3717a884e07d285fc54392a8d (patch)
tree96708edcb279fedbc986b57df44838fee8a64e67
parent9034652d9fcda22d641b8b030a757a3942112f5f (diff)
downloadydb-6c9370843e7e74f3717a884e07d285fc54392a8d.tar.gz
Enable -Wformat under clang-cl
commit_hash:b2cf3b80a36e4867b03a79f3e2c552f19920016f
-rwxr-xr-xbuild/ymake_conf.py5
-rw-r--r--library/cpp/netliba/v6/udp_address.cpp2
2 files changed, 3 insertions, 4 deletions
diff --git a/build/ymake_conf.py b/build/ymake_conf.py
index 40bc8cec59..771c2b2902 100755
--- a/build/ymake_conf.py
+++ b/build/ymake_conf.py
@@ -2082,11 +2082,10 @@ class MSVCCompiler(MSVC, Compiler):
elif target.is_x86_64:
flags.append('-m64')
- c_warnings.extend((
- '-Wno-format',
+ c_warnings += [
'-Wno-parentheses',
'-Wno-unknown-warning-option',
- ))
+ ]
cxx_warnings += [
'-Wimport-preprocessor-directive-pedantic',
diff --git a/library/cpp/netliba/v6/udp_address.cpp b/library/cpp/netliba/v6/udp_address.cpp
index ba5fd6f45b..be823e2dfa 100644
--- a/library/cpp/netliba/v6/udp_address.cpp
+++ b/library/cpp/netliba/v6/udp_address.cpp
@@ -196,7 +196,7 @@ namespace NNetliba {
continue;
}
if (ptr->Mtu < 1280) {
- fprintf(stderr, "WARNING: MTU %d is less then ipv6 minimum", ptr->Mtu);
+ fprintf(stderr, "WARNING: MTU %lu is less then ipv6 minimum", ptr->Mtu);
}
for (IP_ADAPTER_UNICAST_ADDRESS* addr = ptr->FirstUnicastAddress; addr; addr = addr->Next) {
sockaddr* x = (sockaddr*)addr->Address.lpSockaddr;