-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix or silence warnings #53
Comments
o_O -Wdocumentation ??? Is that a clang specific flag ? |
yes clang can detect broken doxygen documentation |
Good ! I didn't know it did that. |
for unused-variable you need to build release/without asserts (as some variables you use only for sanity checks) |
Will add a CI recipe for at least one Release mode test then. |
you didn't have that already?? 🙈 🙈 :P we'd prefer you test a full -Ofast -flto for the release build :) |
I ported the CI script from EVE without rechecking them :p
Can do |
-Wunused and -Wdocumentation has been fixed -Wconversion is another beast. It complains when passing int to [] that 1.f+i can't be assigned to float in tests. Not sure how to handle those :/ |
OK found the one culprit, next PR will fix those |
You chose a signed size_type for vectorization-performance issues, avoiding exactly these warning issues and/or something else? |
In fact the main problem was the way we were capturing fixed size. Went back to fixed size being unsigned when built from _c and silenced warnings in a few places with pragma. Other fixes were stupid mistake and adapting tests. This have been merged. |
We now test AppleClang 14 on Mac OS X 12. Due to iains/gcc-12-branch#6 (comment) , we test g++-11 on Mac OS X 11 till the XCode CLT issue is fixed github's side
Closingfor now as multiple runs show no extra warning on our side |
kiwaku/include/kwk/detail/sequence/prefilled.hpp:65:81: error: non-constant-expression cannot be narrowed from type 'unsigned long long' to 'unsigned long' in initializer list [-Wc++11-narrowing]
while building for emscripten (which is a 32bit platform so that could be difference)... |
Oh I forgot about emscriptem. |
Perhaps rather do not use 64bit types unconditionally - probably a size_t-like type would do in most those situations... |
std::size_t is supposed to be the size of the system memory. It is not 64 bits ona 32 bits system. |
currently we need to disable:
"-Wconversion"
"-Wdocumentation"
"-Wunused-variable"
before
#include <kwk/utility/container/shape.hpp>
#include <kwk/utility/linear_index.hpp>
The text was updated successfully, but these errors were encountered: