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

Fix compiler warnings #329

Merged
merged 15 commits into from
May 31, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Fix] Implicit fallthrough
  • Loading branch information
SFrijters committed May 29, 2020
commit ca4b1f6eea495d4738c9008642f549b7549750ea
3 changes: 3 additions & 0 deletions src/c/types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ namespace occa {
if (value.value.ptr == NULL) {
return occa::json(occa::json::null_);
}
/* FALLTHRU */
default:
OCCA_FORCE_ERROR("Invalid value type");
return occa::json();
Expand Down Expand Up @@ -597,6 +598,8 @@ namespace occa {
if (mem) {
return *(mem->dtype_);
}
OCCA_FORCE_ERROR("Invalid pointer type");
return dtype::none;
}
default:
OCCA_FORCE_ERROR("Invalid value type");
Expand Down