Commit 5a0b85c
abacus_fixer
fix: add missing variadic macro argument in Tensor::sync
REQUIRES_OK(expr, ...) is a variadic macro defined in macros.h.
C++14 requires at least one argument be passed for the ... parameter;
omitting it is a C++20 extension that triggers -Wvariadic-macro-arguments-omitted
under icpx -pedantic.
Tensor::sync was the only call site in the whole codebase that omitted the
second argument. Add a descriptive error message to keep the macro usage
consistent with every other REQUIRES_OK call.1 parent e29103d commit 5a0b85c
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
| 299 | + | |
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
| |||
0 commit comments