Skip to content

Commit

Permalink
Fix minor warnings
Browse files Browse the repository at this point in the history
They clutter the build output for no reason.
  • Loading branch information
serge-sans-paille committed Oct 8, 2023
1 parent d5d58db commit 1cdf1ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/mandelbrot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,7 @@ struct run_archlist<xsimd::arch_list<Arch...>>
int maxIters,
std::vector<int, xsimd::aligned_allocator<int, Align>>& buffer)
{
using expand_type = int[];
expand_type { (run_arch<Arch>(bencher, x0, y0, x1, x1, width, height, maxIters, buffer), 0)... };
(void)std::initializer_list<int>{ (run_arch<Arch>(bencher, x0, y0, x1, x1, width, height, maxIters, buffer), 0)... };
}
};

Expand Down
2 changes: 1 addition & 1 deletion test/doc/explicit_use_of_an_instruction_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace xs = xsimd;

int main(int argc, char* argv[])
int main(int, char* [])
{
xs::batch<double, xs::avx> a = { 1.5, 2.5, 3.5, 4.5 };
xs::batch<double, xs::avx> b = { 2.5, 3.5, 4.5, 5.5 };
Expand Down

0 comments on commit 1cdf1ac

Please sign in to comment.