Browse Source

Remove extra semicolon

bulatman 1 year ago
parent
commit
f3f107ba89

+ 1 - 1
library/cpp/compproto/huff.h

@@ -353,7 +353,7 @@ namespace NCompProto {
                 if (cum > (ui32)(-1)) {
                     return;
                 }
-            };
+            }
         }
 
         TCache<1024, TCoderEntry> Cache;

+ 0 - 5
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())

+ 0 - 1
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());

+ 1 - 1
util/digest/murmur.cpp

@@ -50,7 +50,7 @@ namespace NMurmurPrivate {
                 h ^= data[0];
                 h *= m;
                 break;
-        };
+        }
 
         h ^= h >> 13;
         h *= m;

+ 1 - 1
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 {

+ 0 - 1
util/memory/segpool_alloc.h

@@ -79,7 +79,6 @@ struct segpool_alloc {
             free(__p);
         } else {
             Y_IF_DEBUG(pool_free_count++);
-            ;
         }
     }
     ~segpool_alloc() {

+ 3 - 2
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;