Skip to content

Commit

Permalink
remove warning supression
Browse files Browse the repository at this point in the history
No longer relevant.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
  • Loading branch information
neheb committed Jan 19, 2024
1 parent 4af576c commit cac362c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/jp2image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,12 +582,6 @@ void Jp2Image::writeMetadata() {

} // Jp2Image::writeMetadata

#ifdef __clang__
// ignore cast align errors. dataBuf.pData_ is allocated by malloc() and 4 (or 8 byte aligned).
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-align"
#endif

void Jp2Image::encodeJp2Header(const DataBuf& boxBuf, DataBuf& outBuf) {
DataBuf output(boxBuf.size() + iccProfile_.size() + 100); // allocate sufficient space
size_t outlen = boxHSize; // now many bytes have we written to output?
Expand Down Expand Up @@ -659,10 +653,6 @@ void Jp2Image::encodeJp2Header(const DataBuf& boxBuf, DataBuf& outBuf) {
ul2Data(outBuf.data(4), kJp2BoxTypeHeader, bigEndian);
}

#ifdef __clang__
#pragma clang diagnostic pop
#endif

void Jp2Image::doWriteMetadata(BasicIo& outIo) {
if (!io_->isopen())
throw Error(ErrorCode::kerInputDataReadFailed);
Expand Down

0 comments on commit cac362c

Please sign in to comment.