Skip to content

Commit

Permalink
S3 IO: Meta server: add pragmas to work around spurious GCC 13 warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeov committed Oct 1, 2024
1 parent 4cdaa98 commit 1e3855a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cc/s3io/s3ion.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2028,7 +2028,14 @@ class S3ION : public IOMethod
if (mReq.mClearBufferPtr) {
mReq.mClearBufferPtr->mBufferPtr = 0;
}
#if defined(__GNUC__) && ! defined(__clang__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdangling-pointer"
#endif
mReq.mClearBufferPtr = this;
#if defined(__GNUC__) && ! defined(__clang__)
# pragma GCC diagnostic pop
#endif
}
~StClearBuffer()
{
Expand Down

0 comments on commit 1e3855a

Please sign in to comment.