Fix more -Wunused-parameter warnings

pull/7882/head
Yuriy Chernyshov 4 years ago committed by Adam Cozzette
parent 5ecb4ab4cd
commit 2361b1960f
  1. 4
      src/google/protobuf/compiler/cpp/cpp_message.cc
  2. 1
      src/google/protobuf/map.h

@ -1054,6 +1054,8 @@ void MessageGenerator::GenerateClassDefinition(io::Printer* printer) {
" s->data(), static_cast<int>(s->size()), "
"::$proto_ns$::internal::"
"WireFormatLite::PARSE, \"$1$\");\n"
"#else\n"
" (void) s;\n"
"#endif\n"
" return true;\n"
" }\n",
@ -1081,6 +1083,8 @@ void MessageGenerator::GenerateClassDefinition(io::Printer* printer) {
" s->data(), static_cast<int>(s->size()), "
"::$proto_ns$::internal::"
"WireFormatLite::PARSE, \"$1$\");\n"
"#else\n"
" (void) s;\n"
"#endif\n"
" return true;\n"
" }\n",

@ -826,6 +826,7 @@ class Map {
// non-determinism to the map ordering.
bool ShouldInsertAfterHead(void* node) {
#ifdef NDEBUG
(void) node;
return false;
#else
// Doing modulo with a prime mixes the bits more.

Loading…
Cancel
Save