Skip to content

Commit

Permalink
need to stop the windows compiler from assuming if i can divide by 0 …
Browse files Browse the repository at this point in the history
…or not
  • Loading branch information
loglund committed Jan 10, 2024
1 parent 64ce8bb commit 53bd1e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/src/test_metric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// All Rights Reserved
//
// Distributed under the "BSD License". See the accompanying LICENSE.rst file.
#pragma STDC FENV_ACCESS ON

Check warning on line 5 in test/src/test_metric.cpp

View workflow job for this annotation

GitHub Actions / MacOS-mkspecs / Apple Big Sur (ARM)

'#pragma FENV_ACCESS' is not supported on this target - ignored [-Wignored-pragmas]

Check warning on line 5 in test/src/test_metric.cpp

View workflow job for this annotation

GitHub Actions / Windows-mkspecs / MSVC 17 32-bit

unknown pragma 'STDC'

Check warning on line 5 in test/src/test_metric.cpp

View workflow job for this annotation

GitHub Actions / Windows-mkspecs / MSVC 17 64-bit

unknown pragma 'STDC'

#include <cmath>
#include <cstdint>
Expand Down

0 comments on commit 53bd1e5

Please sign in to comment.