Skip to content

Conversation

@zwoop
Copy link
Contributor

@zwoop zwoop commented Feb 15, 2017

This removes a number of the previous warning exclusions that we
we used to do. We then also have to clean up the core code in a
few places, sometimes looking slightly odd (e.g. the meaningless
const that we have in a few places).

@zwoop zwoop added Build work related to build configuration or environment Cleanup labels Feb 15, 2017
@zwoop zwoop added this to the 7.2.0 milestone Feb 15, 2017
@zwoop zwoop self-assigned this Feb 15, 2017
@atsci
Copy link

atsci commented Feb 15, 2017

Linux build successful! See https://ci.trafficserver.apache.org/job/linux-github/1449/ for details.

@atsci
Copy link

atsci commented Feb 15, 2017

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/freebsd-github/1555/ for details.

@atsci
Copy link

atsci commented Feb 15, 2017

clang-analyzer build successful! See https://ci.trafficserver.apache.org/job/clang-analyzer-github/120/ for details.

@zwoop zwoop force-pushed the ICC branch 2 times, most recently from cee6d9d to d407f43 Compare February 15, 2017 21:53
@atsci
Copy link

atsci commented Feb 15, 2017

Linux build successful! See https://ci.trafficserver.apache.org/job/linux-github/1451/ for details.

@atsci
Copy link

atsci commented Feb 15, 2017

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/freebsd-github/1558/ for details.

@atsci
Copy link

atsci commented Feb 15, 2017

clang-analyzer build successful! See https://ci.trafficserver.apache.org/job/clang-analyzer-github/123/ for details.

Copy link
Contributor

@bryancall bryancall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

}

ink_release_assert(!"out of range");
return default_ret[0];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The real problem is ICC doesn't realize the assert never returns.

Although, I don't understand why static char zwoop = '0'; return zwoop; wouldn't work, rather than messing about with an array.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I can try that.

}

if (sigact != handler) {
if (sigact != (void *)handler) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No C-style casts! static_cast<void*>(handler) although we should really rethink using void* in this context.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did look / try not using void *, but it turns out the sigaction is not the same type as the handler. So some casting would be needed.

And yeh, I'll change to amc style cast, only because you are the best, and currently sitting in the #1 spot on the ranking.

Copy link
Contributor Author

@zwoop zwoop Feb 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I'm not gonna change this, because everything else in this file (in a many places) uses the C-style cast already.

This removes a number of the previous warning exclusions that we
we used to do. We then also have to clean up the core code in a
few places, sometimes looking slightly odd (e.g. the meaningless
const that we have in a few places).
@atsci
Copy link

atsci commented Feb 16, 2017

Linux build successful! See https://ci.trafficserver.apache.org/job/linux-github/1458/ for details.

@atsci
Copy link

atsci commented Feb 16, 2017

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/freebsd-github/1564/ for details.

@atsci
Copy link

atsci commented Feb 16, 2017

clang-analyzer build successful! See https://ci.trafficserver.apache.org/job/clang-analyzer-github/129/ for details.

@zwoop zwoop merged commit 6bdc94e into apache:master Feb 16, 2017
@zwoop zwoop deleted the ICC branch February 16, 2017 19:30
@zwoop zwoop modified the milestones: 7.1.0, 7.2.0 Feb 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build work related to build configuration or environment Cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants