Skip to content

Commit

Permalink
Suppressing erroneous warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Sep 21, 2024
1 parent eddeabe commit 0fbede6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gateway/lib/src/session_op/Encapsulate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,19 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

#include "comms/CompileControl.h"

COMMS_GNU_WARNING_PUSH

#if defined(NDEBUG) && COMMS_IS_GCC_12_OR_ABOVE && COMMS_IS_GCC_14_OR_BELOW && (COMMS_IS_CPP20 || COMMS_IS_CPP23)
// Suppress erroneous warning for g++-[12 - 14] when compiled with C++20/23 in Release mode.
COMMS_GNU_WARNING_DISABLE("-Wstringop-overread")
#endif

#include "Encapsulate.h"

COMMS_GNU_WARNING_POP

#include <cassert>
#include <tuple>

Expand Down

0 comments on commit 0fbede6

Please sign in to comment.