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
cmake, common: silence cmake and gcc warnings #21484
Conversation
7acb257
to
7cefddd
Compare
23e4d50
to
76aa00d
Compare
Preforker.h:111:8: warning: ignoring return value of ‘ssize_t safe_write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result] (void)safe_write(fd[1], &r, sizeof(r)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ and compat.cc:36:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (off + sizeof(data) > len) ~~~~~~~~~~~~~~~~~~~^~~~~ Fixes: http://tracker.ceph.com/issues/23774 Signed-off-by: Kefu Chai <kchai@redhat.com>
it's intended behavior to use imported or alias target for dependencies with name with "::" in it. Signed-off-by: Kefu Chai <kchai@redhat.com>
db3b69f
to
43d251a
Compare
@jdurgin can we have this PR in mimic? |
@@ -108,7 +108,7 @@ class Preforker { | |||
int signal_exit(int r) { | |||
if (forked) { | |||
/* If we get an error here, it's too late to do anything reasonable about it. */ | |||
(void)safe_write(fd[1], &r, sizeof(r)); | |||
[[maybe_unused]] auto n = safe_write(fd[1], &r, sizeof(r)); |
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.
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.
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.
Okay, I'll close #21481 in favor of this.
the boost's download page offers the SHA256 hash, so it'd be easier to verify the hash this way. Signed-off-by: Kefu Chai <kchai@redhat.com>
to silence the warnings like CMake Warning at CMakeLists.txt:73 (find_package): By not providing "Findgflags.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "gflags", but CMake did not find one. Could not find a package configuration file provided by "gflags" with any of the following names: gflagsConfig.cmake gflags-config.cmake Add the installation prefix of "gflags" to CMAKE_PREFIX_PATH or set "gflags_DIR" to a directory containing one of the above files. If "gflags" provides a separate development package or SDK, be sure it has been installed. Signed-off-by: Kefu Chai <kchai@redhat.com>
43d251a
to
3178bb9
Compare
i am dropping the commit bumping boost version to 1.67 out of this PR, so it is safer to be merged into mimic. |
No description provided.