3 ms·
Yea, I've had success with the following procedure: 1. Determine the set of warnings you're going to enable for you project, and apply them to your own code an
by ryandrake 9y ago
Yea, I've had success with the following procedure:
1. Determine the set of warnings you're going to enable for you project, and apply them to your own code and all third-party libraries.
2. For each third party dependency, find the minimal set of warnings that, when suppressed, make them compile cleanly, and disable just those (only for that specific third party project).
3. If any of those suppressions makes you uncomfortable, submit a patch to the third party maintainer if possible :)
As for #3 with open source libraries, I've seen the spectrum of attitudes from "thank you very much for the patch!" to "we don't care about compiler warnings, just turn them off"
EDIT: One thing this doesn't address is third party dependencies where #including their headers from your project results in warnings. If you're a developer who writes header files that produce warnings, please take a moment to hang your head in shame.
- valuearb 9y agoThanks.