-
Notifications
You must be signed in to change notification settings - Fork 58
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
disable warnings in third-party code #281
base: develop
Are you sure you want to change the base?
Conversation
Signed-off-by: Carl Pearson <cwpears@sandia.gov>
0743c3c
to
82870a3
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If anything we should disable all warnings.
On my cell now but I am sure you can find examples of us doing that, possibly for gtest in core?
We do it in perf_test for google benchmark. Sorry can't get a reference but I am sure you'll find it |
Signed-off-by: Carl Pearson <cwpears@sandia.gov>
dd65e12
to
dc32e06
Compare
Cool, TIL about Changed perfetto.cc to be compiled into its own static library so we still get warnings from our connector code. |
add_library(perfetto_static STATIC perfetto/perfetto.cc) | ||
set_target_properties(perfetto_static PROPERTIES POSITION_INDEPENDENT_CODE ON) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we built the library explicitly as static
with fpic
instead of shared?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I figured it was less opportunity for something to go wrong during the build. I don't have a strong opinion.
Can you elaborate on that? |
Used to be that our connector code (libperfetto-connector.cc) and the third-party perfetto.cc were compiled into the same target, so whatever options were applied to one would be applied to both. I split them up so we could ignore warnings from perfetto.cc and otherwise leave our code compiling the way it used to be. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine with me.
I don't have the merge power, someone else will have to hit the button |
This is third-party code, so modify the compiler flags instead of the code itself.