Compare commits

...
Sign in to create a new pull request.

6 commits

Author SHA1 Message Date
Fedora Release Engineering
1f33e0f9e4 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 17:52:14 +00:00
Fedora Release Engineering
2c12e4323c Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 09:52:39 +00:00
Fedora Release Engineering
5edfac5a32 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 04:42:41 +00:00
Fedora Release Engineering
747f1ab8e5 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 02:01:35 +00:00
Diego Herrera
c07f5f4be1 Fix CPP14 and CPP98 tests 2023-07-28 09:37:07 -04:00
Fedora Release Engineering
df98fbaf81 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 00:56:19 +00:00
3 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,30 @@
diff --git a/Test/ConstExpr.cpp b/Test/ConstExpr.cpp
index ab624ea..ad2d8f1 100644
--- a/Test/ConstExpr.cpp
+++ b/Test/ConstExpr.cpp
@@ -9,25 +9,6 @@
#pragma GCC diagnostic ignored "-Wunused-variable"
#endif
-#if !defined __clang__ && defined __GNUC__ && __cplusplus >= 201402L
-// The gcc compiler isn't smart enough to sort out that the constexpr exception functions
-// are never hit, so create a null exception handler. Nothing in this file is tested at runtime in any case.
-class SafeIntGccCompileOnly
-{
-public:
- constexpr static void SafeIntOnOverflow()
- {
- }
-
- constexpr static void SafeIntOnDivZero()
- {
- }
-};
-
-#define SafeIntDefaultExceptionHandler SafeIntGccCompileOnly
-
-#endif
-
#include "../SafeInt.hpp"
namespace TestConstExpr

View file

@ -0,0 +1,20 @@
diff --git a/Test/GccTest/CMakeLists.txt b/Test/GccTest/CMakeLists.txt
index 38bf581..9254d70 100644
--- a/Test/GccTest/CMakeLists.txt
+++ b/Test/GccTest/CMakeLists.txt
@@ -123,15 +123,6 @@ else()
target_compile_options(CompileTest_gcc14_NoEH PUBLIC -Wall -std=c++14 -fno-exceptions)
- add_executable(CompileTest_gcc98
- ../CompileTest.cpp
- ../ConstExpr.cpp
- ../CleanCompile.cpp
- ../../SafeInt.hpp
- )
-
- target_compile_options(CompileTest_gcc98 PUBLIC -D SAFEINT_USE_CPLUSCPLUS_98 -Wall -std=c++98 -fno-exceptions)
-
add_executable(safe_math_test_gcc
../c_safe_math/safe_math_test.c
../c_safe_math/safe_math_test.h

View file

@ -12,6 +12,8 @@ Source0: https://github.com/dcleblanc/SafeInt/archive/%{version}/SafeInt-
# https://github.com/dcleblanc/SafeInt/pull/48
Patch0: safeint-3.0.27-gcc13_fix.patch
Patch1: safeint-3.0.27-gcc98_test_rm.patch
Patch2: safeint-3.0.27-gcc14_test_fix.patch
BuildRequires: gcc-c++
BuildRequires: cmake