aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbulatman <bulatman@yandex-team.com>2023-08-02 10:15:08 +0300
committerbulatman <bulatman@yandex-team.com>2023-08-02 10:15:08 +0300
commitf3f107ba8959babdcd096d7d599efca438fd1f97 (patch)
treeb3fc25e636f68b8eb363588d546dddfc85604dba
parent0b51f759add67b66ecbc8a585b99f19b5856f56e (diff)
downloadydb-f3f107ba8959babdcd096d7d599efca438fd1f97.tar.gz
Remove extra semicolon
-rw-r--r--library/cpp/compproto/huff.h2
-rw-r--r--library/cpp/getopt/small/last_getopt_opt.cpp5
-rw-r--r--library/cpp/json/fast_sax/parser.rl61
-rw-r--r--util/digest/murmur.cpp2
-rw-r--r--util/folder/pathsplit.cpp2
-rw-r--r--util/memory/segpool_alloc.h1
-rw-r--r--util/system/mktemp_system.cpp5
7 files changed, 6 insertions, 12 deletions
diff --git a/library/cpp/compproto/huff.h b/library/cpp/compproto/huff.h
index 3d93c0184d..321f5ab993 100644
--- a/library/cpp/compproto/huff.h
+++ b/library/cpp/compproto/huff.h
@@ -353,7 +353,7 @@ namespace NCompProto {
if (cum > (ui32)(-1)) {
return;
}
- };
+ }
}
TCache<1024, TCoderEntry> Cache;
diff --git a/library/cpp/getopt/small/last_getopt_opt.cpp b/library/cpp/getopt/small/last_getopt_opt.cpp
index 9a99437f4b..9c53312de8 100644
--- a/library/cpp/getopt/small/last_getopt_opt.cpp
+++ b/library/cpp/getopt/small/last_getopt_opt.cpp
@@ -28,7 +28,6 @@ namespace NLastGetopt {
}
char TOpt::GetChar() const {
- ;
if (Chars_.empty())
ythrow TConfException() << "no char for option " << this->ToShortString();
return Chars_.at(0);
@@ -41,7 +40,6 @@ namespace NLastGetopt {
}
TString TOpt::GetName() const {
- ;
if (LongNames_.empty())
ythrow TConfException() << "no name for option " << this->ToShortString();
return LongNames_.at(0);
@@ -52,7 +50,6 @@ namespace NLastGetopt {
}
TOpt& TOpt::AddShortName(unsigned char c) {
- ;
if (!IsAllowedShortName(c))
throw TUsageException() << "option char '" << c << "' is not allowed";
Chars_.push_back(c);
@@ -72,7 +69,6 @@ namespace NLastGetopt {
}
TOpt& TOpt::AddLongName(const TString& name) {
- ;
unsigned char c = 0;
if (!IsAllowedLongName(name, &c))
throw TUsageException() << "option char '" << c
@@ -88,7 +84,6 @@ namespace NLastGetopt {
}
TString TOpt::ToShortString() const {
- ;
if (!LongNames_.empty())
return NPrivate::OptToString(LongNames_.front());
if (!Chars_.empty())
diff --git a/library/cpp/json/fast_sax/parser.rl6 b/library/cpp/json/fast_sax/parser.rl6
index edb4e9ee1b..504f51d215 100644
--- a/library/cpp/json/fast_sax/parser.rl6
+++ b/library/cpp/json/fast_sax/parser.rl6
@@ -295,7 +295,6 @@ bool TParserCtx::Parse() {
write init;
write exec;
}%%
- ;
Y_UNUSED(fastjson_en_main);
} catch (const TFromStringException& e) {
return OnError(e.what());
diff --git a/util/digest/murmur.cpp b/util/digest/murmur.cpp
index 0cb0a2f7b5..ebaad59220 100644
--- a/util/digest/murmur.cpp
+++ b/util/digest/murmur.cpp
@@ -50,7 +50,7 @@ namespace NMurmurPrivate {
h ^= data[0];
h *= m;
break;
- };
+ }
h ^= h >> 13;
h *= m;
diff --git a/util/folder/pathsplit.cpp b/util/folder/pathsplit.cpp
index 834e3b431c..816f696024 100644
--- a/util/folder/pathsplit.cpp
+++ b/util/folder/pathsplit.cpp
@@ -106,7 +106,7 @@ TString TPathSplitStore::DoReconstruct(const TStringBuf slash) const {
void TPathSplitStore::AppendComponent(const TStringBuf comp) {
if (!comp || comp == TStringBuf(".")) {
- ; // ignore
+ // ignore
} else if (comp == TStringBuf("..") && !empty() && back() != TStringBuf("..")) {
pop_back();
} else {
diff --git a/util/memory/segpool_alloc.h b/util/memory/segpool_alloc.h
index 1a83b7a543..0a06a79abe 100644
--- a/util/memory/segpool_alloc.h
+++ b/util/memory/segpool_alloc.h
@@ -79,7 +79,6 @@ struct segpool_alloc {
free(__p);
} else {
Y_IF_DEBUG(pool_free_count++);
- ;
}
}
~segpool_alloc() {
diff --git a/util/system/mktemp_system.cpp b/util/system/mktemp_system.cpp
index 4ee3bab799..601fc67500 100644
--- a/util/system/mktemp_system.cpp
+++ b/util/system/mktemp_system.cpp
@@ -64,8 +64,9 @@ GetTemp(char* path, int* doopen, int domkdir, int slen)
return (0);
}
- for (trv = path; *trv != '\0'; ++trv) {
- ;
+ trv = path;
+ while (*trv != 0) {
+ ++trv;
}
trv -= slen;
suffp = trv;