Merge pull request #785 from fhuberts/fix-Wextra-semi

Fix compiler warnings (-Wextra-semi)
This commit is contained in:
Leonid Stryzhevskyi 2023-07-22 01:21:41 +03:00 committed by GitHub
commit fd3d7b796d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 11 deletions

View File

@ -72,11 +72,11 @@ public:
/**
* Optionally override this method. It should contain logic run before all test iterations.
*/
virtual void before(){};
virtual void before(){}
/**
* Optionally override this method. It should contain logic run after all test iterations.
*/
virtual void after(){};
virtual void after(){}
/**
* Run this test repeatedly for specified number of times.

View File

@ -46,7 +46,7 @@ public:
private:
F lambda;
public:
ConditionTemplate(const F& f) : lambda(f) {};
ConditionTemplate(const F& f) : lambda(f) {}
bool check() override {
return lambda();
}

View File

@ -162,7 +162,7 @@ class LogCategory {
: tag(std::move(pTag))
, categoryEnabled(pCategoryEnabled)
, enabledPriorities(pEnabledPriorities)
{};
{}
/**
* The tag for this category

View File

@ -177,7 +177,7 @@ public:
class StringKeyLabel : public MemoryLabel {
public:
StringKeyLabel() : MemoryLabel() {};
StringKeyLabel() : MemoryLabel() {}
StringKeyLabel(std::nullptr_t) : MemoryLabel() {}
@ -241,7 +241,7 @@ public:
class StringKeyLabelCI : public MemoryLabel {
public:
StringKeyLabelCI() : MemoryLabel() {};
StringKeyLabelCI() : MemoryLabel() {}
StringKeyLabelCI(std::nullptr_t) : MemoryLabel() {}

View File

@ -84,7 +84,7 @@ class DtoC : public DtoA {
DTO_FIELD(String, b);
DTO_FIELD(String, c);
DTO_HC_EQ(a, b, c);
DTO_HC_EQ(a, b, c)
};

View File

@ -83,22 +83,22 @@ public:
OATPP_ASSERT_HTTP(false, Status::CODE_503, "Service unavailable")
}
ADD_CORS(cors);
ADD_CORS(cors)
ENDPOINT("GET", "/cors", cors) {
return createResponse(Status::CODE_200, "Ping");
}
ADD_CORS(corsOrigin, "127.0.0.1");
ADD_CORS(corsOrigin, "127.0.0.1")
ENDPOINT("GET", "/cors-origin", corsOrigin) {
return createResponse(Status::CODE_200, "Pong");
}
ADD_CORS(corsOriginMethods, "127.0.0.1", "GET, OPTIONS");
ADD_CORS(corsOriginMethods, "127.0.0.1", "GET, OPTIONS")
ENDPOINT("GET", "/cors-origin-methods", corsOriginMethods) {
return createResponse(Status::CODE_200, "Ping");
}
ADD_CORS(corsOriginMethodsHeaders, "127.0.0.1", "GET, OPTIONS", "X-PWNT");
ADD_CORS(corsOriginMethodsHeaders, "127.0.0.1", "GET, OPTIONS", "X-PWNT")
ENDPOINT("GET", "/cors-origin-methods-headers", corsOriginMethodsHeaders) {
return createResponse(Status::CODE_200, "Pong");
}