mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 08:46:49 +08:00
Merge pull request #302 from biojppm/fix_wundef
fix warning from -Wundef
This commit is contained in:
commit
96067ad107
26
.github/workflows/ubuntu24.yml
vendored
26
.github/workflows/ubuntu24.yml
vendored
@ -9,15 +9,21 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use cmake
|
||||
run: |
|
||||
mkdir build &&
|
||||
cd build &&
|
||||
CXXFLAGS=-Werror cmake -DFASTFLOAT_TEST=ON -D FASTFLOAT_BENCHMARKS=ON .. &&
|
||||
cmake --build . &&
|
||||
ctest --output-on-failure
|
||||
set -xe
|
||||
cmake -B build \
|
||||
-DFASTFLOAT_TEST=ON \
|
||||
-DFASTFLOAT_BENCHMARKS=ON \
|
||||
-DCMAKE_CXX_FLAGS=' -Werror -Wundef '
|
||||
cmake --build build --parallel
|
||||
( cd build ; ctest --output-on-failure )
|
||||
- name: Use cmake CXX23
|
||||
run: |
|
||||
mkdir build20 &&
|
||||
cd build20 &&
|
||||
CXXFLAGS=-Werror cmake -DFASTFLOAT_CONSTEXPR_TESTS=ON -DFASTFLOAT_FIXEDWIDTH_TESTS=ON -DFASTFLOAT_CXX_STANDARD=23 -DFASTFLOAT_TEST=ON .. &&
|
||||
cmake --build . &&
|
||||
ctest --output-on-failure
|
||||
set -xe
|
||||
cmake -B build20 \
|
||||
-DFASTFLOAT_TEST=ON \
|
||||
-DFASTFLOAT_CONSTEXPR_TESTS=ON \
|
||||
-DFASTFLOAT_FIXEDWIDTH_TESTS=ON \
|
||||
-DFASTFLOAT_CXX_STANDARD=23 \
|
||||
-DCMAKE_CXX_FLAGS=' -Werror -Wundef '
|
||||
cmake --build build20 --parallel
|
||||
( cd build20 ; ctest --output-on-failure )
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
#include <libgen.h>
|
||||
#endif
|
||||
|
||||
#if __APPLE__ && __aarch64__
|
||||
#if (defined(__APPLE__) && __APPLE__) && (defined(__aarch64__) && __aarch64__)
|
||||
#include "apple_arm_events.h"
|
||||
#endif
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
#include <type_traits>
|
||||
#include <system_error>
|
||||
#ifdef __has_include
|
||||
#if __has_include(<stdfloat>) && (__cplusplus > 202002L || _MSVC_LANG > 202002L)
|
||||
#if __has_include(<stdfloat>) && (__cplusplus > 202002L || (defined(_MSVC_LANG) && (_MSVC_LANG > 202002L)))
|
||||
#include <stdfloat>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user