forked from loafle/openapi-generator-original
[C++][Pistache] Fix warnings (#3238)
* [C++][Pistache] Fix warnings Remove unecessary semicolon (Wpedantic) Remove unused parameter name (Wunused-parameter) * [C++][Pistache] Update Petstore sample
This commit is contained in:
committed by
sunn
parent
e46bd7dd18
commit
731b162942
@@ -23,7 +23,7 @@ using namespace org::openapitools::server::model;
|
||||
|
||||
PetApi::PetApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
|
||||
router = rtr;
|
||||
};
|
||||
}
|
||||
|
||||
void PetApi::init() {
|
||||
setupRoutes();
|
||||
@@ -201,7 +201,7 @@ void PetApi::upload_file_handler(const Pistache::Rest::Request &request, Pistach
|
||||
|
||||
}
|
||||
|
||||
void PetApi::pet_api_default_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
|
||||
void PetApi::pet_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
|
||||
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user