Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf convert to c++ and enable -Wcast-align #11641

Merged
merged 2 commits into from
Mar 16, 2019
Merged

Conversation

dagar
Copy link
Member

@dagar dagar commented Mar 14, 2019

No description provided.

@dagar dagar force-pushed the pr-perf_cleanup branch 3 times, most recently from d36df47 to 6b5e5a0 Compare March 15, 2019 04:41
@dagar dagar changed the title [WIP] perf convert to c++ and enable -Wcast-align perf convert to c++ and enable -Wcast-align Mar 15, 2019
Copy link
Contributor

@julianoes julianoes left a comment

Choose a reason for hiding this comment

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

I added one question, otherwise looks good.

I didn't know about this warning and just read about it here: http://blog.antiblau.de/2016/07/13/cc-developers-please-use-wcast-align/

Why did this come up? Is it just general precaution or was there a bug because of it?

src/lib/perf/perf_counter.cpp Show resolved Hide resolved
@dagar
Copy link
Member Author

dagar commented Mar 15, 2019

Why did this come up? Is it just general precaution or was there a bug because of it?

Mostly paranoia over potential alignment issues on arm after #11408.

@dagar dagar force-pushed the pr-perf_cleanup branch from 6b5e5a0 to b97777e Compare March 15, 2019 20:38
julianoes
julianoes previously approved these changes Mar 15, 2019
@dagar dagar force-pushed the pr-perf_cleanup branch from 540aef0 to 41e40f4 Compare March 16, 2019 15:23
@dagar dagar merged commit b35d048 into PX4:master Mar 16, 2019
@dagar dagar deleted the pr-perf_cleanup branch March 16, 2019 15:47
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