mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
fix warnings from -Wundef
This commit is contained in:
parent
77cc847c84
commit
9cfa5ff4a0
26
.github/workflows/ubuntu24.yml
vendored
26
.github/workflows/ubuntu24.yml
vendored
@ -9,15 +9,21 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Use cmake
|
- name: Use cmake
|
||||||
run: |
|
run: |
|
||||||
mkdir build &&
|
set -xe
|
||||||
cd build &&
|
cmake -B build \
|
||||||
CXXFLAGS=-Werror cmake -DFASTFLOAT_TEST=ON -D FASTFLOAT_BENCHMARKS=ON .. &&
|
-DFASTFLOAT_TEST=ON \
|
||||||
cmake --build . &&
|
-DFASTFLOAT_BENCHMARKS=ON \
|
||||||
ctest --output-on-failure
|
-DCMAKE_CXX_FLAGS=' -Werror -Wundef '
|
||||||
|
cmake --build build --parallel
|
||||||
|
( cd build ; ctest --output-on-failure )
|
||||||
- name: Use cmake CXX23
|
- name: Use cmake CXX23
|
||||||
run: |
|
run: |
|
||||||
mkdir build20 &&
|
set -xe
|
||||||
cd build20 &&
|
cmake -B build20 \
|
||||||
CXXFLAGS=-Werror cmake -DFASTFLOAT_CONSTEXPR_TESTS=ON -DFASTFLOAT_FIXEDWIDTH_TESTS=ON -DFASTFLOAT_CXX_STANDARD=23 -DFASTFLOAT_TEST=ON .. &&
|
-DFASTFLOAT_TEST=ON \
|
||||||
cmake --build . &&
|
-DFASTFLOAT_CONSTEXPR_TESTS=ON \
|
||||||
ctest --output-on-failure
|
-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>
|
#include <libgen.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __APPLE__ && __aarch64__
|
#if (defined(__APPLE__) && __APPLE__) && (defined(__aarch64__) && __aarch64__)
|
||||||
#include "apple_arm_events.h"
|
#include "apple_arm_events.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <system_error>
|
#include <system_error>
|
||||||
#ifdef __has_include
|
#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>
|
#include <stdfloat>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user