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
include/enc: make clang happy #11638
Conversation
This makes clang happy. Signed-off-by: Sage Weil <sage@redhat.com>
"-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64" is not for gcc, it's for glibc actually. so enable it on LINUX. Signed-off-by: Kefu Chai <kchai@redhat.com>
put the overloaded operator<<() into namespace std, so clang's name resolution is able to find it. Signed-off-by: Kefu Chai <kchai@redhat.com>
@wjwithagen and @liewegas i am including #11605 in this PR, and this PR also addresses the build failure in it compiles fine with clang-4.0 on my debian box. also, i changed #11605 so we are using |
the warning above from clang is annoying, but no idea what to do with it atm... |
@tchaikov |
@tchaikov |
this file is included by many compilation units. so it would be less fun to enumerate all of them and disable this warning when compiling them, and this warning is helpful if enabled under most circumstances. probably we can disable it using pragma directive. @wjwithagen just want to avoid the c style |
@tchaikov |
@tchaikov As you know I'm not the expert on C++, but the if Running the unittest is a different cookie, it still core-dumps, but if this is oke under Linux I suggest to commit this, and then we figure out why the test is failing. That way the FreeBSD jenkins builder does not abort in compilation.
|
@wjwithagen strange enough, the test passes on linux. |
@tchaikov Backtrace
And c_str()
Get data is even more simple:
So I'm sort of wondering why this would SIGSEGV if _raw is pointing in valid space....
So gdb seems to be able to do this. |
@liewegas could you take a look? |
Signed-off-by: Kefu Chai <kchai@redhat.com>
lgtm! |
Oh, didn't see @wjwithagen's comment. Probably this is the problem: "_vptr$raw = 0x0"? I'm stumped. I'd starting adding cout lines to see if c_str() is callable earlier, etc.. |
ceph-common needs python-argparse in SUSE/openSUSE and needs redhat-lsb-core only in RHEL/CentOS/Fedora. http://tracker.ceph.com/issues/11638 Fixes: ceph#11638 Signed-off-by: Nathan Cutler <ncutler@suse.cz> (cherry picked from commit 363d957) Conflicts: ceph.spec.in
No description provided.