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

src/CMakeLists.txt: supress more warnings #10469

Merged
merged 1 commit into from Sep 4, 2016

Conversation

wjwithagen
Copy link
Contributor

  • We already have -Wall
    So these options without no- are redundant.
    and overloaded-virtual generates one warning for every line
    when compiling with Clang.

Signed-off-by: Willem Jan Withagen wjw@digiware.nl

@wjwithagen
Copy link
Contributor Author

please retest this

@wjwithagen
Copy link
Contributor Author

@tchaikov
This especially pollutes the output of compiling config_opts.h with clang.

@tchaikov
Copy link
Contributor

tchaikov commented Aug 26, 2016

@wjwithagen could you pastebin (some) of the output? i just want to make sure we are not wallpapering interesting warnings.

@wjwithagen
Copy link
Contributor Author

@tchaikov
Reran the compile without the flag, and this time no more warnings are reported.
(In the mean time, I upgraded, so it could be the newer version of Clang)

But then the question still is there: Why is this flag added if we are using -Wall

@tchaikov
Copy link
Contributor

tchaikov commented Sep 1, 2016

But then the question still is there: Why is this flag added if we are using -Wall

-Woverloaded-virtual is not enabled by -Wall, see
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

but clang's -Wall does enable this option, see https://github.com/llvm-mirror/clang/blob/master/include/clang/Basic/DiagnosticGroups.td. probably, we can enable this option only for GCC.

@wjwithagen
Copy link
Contributor Author

@tchaikov
Arrghh, never occurred to me to even compare differences in options.
And naively expected all to mean ALL
We already have conditioned options for GCC, so best move it there?

… on Clang

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
@tchaikov tchaikov merged commit 51c45e3 into ceph:master Sep 4, 2016
@tchaikov tchaikov self-assigned this Sep 4, 2016
@wjwithagen wjwithagen deleted the wip-wjw-compileflag branch January 23, 2019 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants