Skip to content

COMP: Suppress warning on CircleCI about itkIndex out of bounds#43

Merged
kwrobot merged 1 commit intoInsightSoftwareConsortium:masterfrom
blowekamp:SupressIndexOutOfBoundsCircleCI
Mar 21, 2018
Merged

COMP: Suppress warning on CircleCI about itkIndex out of bounds#43
kwrobot merged 1 commit intoInsightSoftwareConsortium:masterfrom
blowekamp:SupressIndexOutOfBoundsCircleCI

Conversation

@blowekamp
Copy link
Member

This suppresses warnings of the following form:
ITK/Modules/Core/Common/include/itkIndex.h:391:27: warning: array
subscript is above array bounds [-Warray-bounds]

It has been determined that this warning is coming from access of an
index variable in ImageAlgorithm::DispatchedCopy. Specifically, when
done like this "++outCurrentIndex[i + 1]". This is a false positive
warning as the code is correct.

Change-Id: Ic763930b6872f78ad51a28b9fc519a4b7aa1dd0b

This suppresses warnings of the following form:
ITK/Modules/Core/Common/include/itkIndex.h:391:27: warning: array
subscript is above array bounds [-Warray-bounds]

It has been determined that this warning is coming from access of an
index variable in ImageAlgorithm::DispatchedCopy. Specifically, when
done like this "++outCurrentIndex[i + 1]". This is a false positive
warning as the code is correct.

Change-Id: Ic763930b6872f78ad51a28b9fc519a4b7aa1dd0b
@kwrobot kwrobot merged commit a57573c into InsightSoftwareConsortium:master Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants