Skip to content

Commit

Permalink
suppress deprecation warning on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <louise@openrobotics.org>
  • Loading branch information
chapulina committed Jan 14, 2021
1 parent aa0cade commit e8c2f84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/FuelClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,15 @@ FuelClient::FuelClient(const ClientConfig &_config, const Rest &_rest)
#ifndef _WIN32
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#else
# pragma warning(push)
# pragma warning(disable: 4996)
#endif
this->dataPtr->cache = std::make_unique<LocalCache>(&(this->dataPtr->config));
#ifndef _WIN32
# pragma GCC diagnostic pop
#else
# pragma warning(pop)
#endif

this->dataPtr->urlModelRegex.reset(new std::regex(
Expand Down

0 comments on commit e8c2f84

Please sign in to comment.