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 two trivial build errors #8467

Merged
merged 3 commits into from
Nov 7, 2024
Merged

Fix two trivial build errors #8467

merged 3 commits into from
Nov 7, 2024

Conversation

steven-johnson
Copy link
Contributor

  • Missing #include in halide_test_dirs.h
  • ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result] in parallel_scenarios.cpp

- Missing #include in halide_test_dirs.h
- ignoring return value of function declared with 'warn_unused_result' attribute [-Werror,-Wunused-result] in parallel_scenarios.cpp
@@ -37,7 +37,7 @@ int main(int argc, char **argv) {

auto bench_one = [&]() {
auto t1 = std::chrono::high_resolution_clock::now();
callable(i, o, memory_limit, in, out);
(void)callable(i, o, memory_limit, in, out);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This actually returns an error code doesn't it? Might be worth checking it outside the timing scope.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We haven't overloaded halide_error in this test, so it actually just always returns zero (or aborts before returning)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added comment

@steven-johnson steven-johnson merged commit e5b12df into main Nov 7, 2024
16 of 19 checks passed
@steven-johnson steven-johnson deleted the srj/trivial branch November 7, 2024 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants