-
Notifications
You must be signed in to change notification settings - Fork 91
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 Clang warning diagnostics #835
base: main
Are you sure you want to change the base?
Conversation
default: | ||
llvm_unreachable("unhandled spir-v version"); | ||
break; | ||
#endif |
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.
For Clang / LLVM, these probably don't make sense anymore as they are covered, if the warnings are kept as errors.
@@ -48,10 +45,6 @@ clspv::ArgKind GetArgKindForType(Type *type); | |||
// ro_image - sampled image | |||
// wo_image - storage image | |||
// sampler - sampler | |||
inline const char *GetArgKindNameForType(llvm::Type *type) { |
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.
No callers
@@ -29,7 +29,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) | |||
project(clspv) | |||
endif() | |||
|
|||
set(CMAKE_CXX_STANDARD 14) | |||
set(CMAKE_CXX_STANDARD 17) |
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.
/Users/jgavris/code/clspv/lib/ReplaceOpenCLBuiltinPass.cpp:3346:25: warning: hexadecimal floating literals are a C++17 feature [-Wc++17-extensions]
const double k_pi = 0x1.921fb54442d18p+1;
Please take a look at the build failures. |
See https://clang.llvm.org/docs/UsersManual.html#options-to-control-error-and-warning-messages