all: various cleanups

This commit is contained in:
Markus F.X.J. Oberhumer
2023-10-30 12:17:51 +01:00
parent 38a676f6f7
commit 37b923245d
7 changed files with 44 additions and 37 deletions
+4 -1
View File
@@ -26,6 +26,9 @@
#include "../conf.h"
// various cxxlib checks
// (modern compilers will optimize away much of this code)
/*************************************************************************
// compile-time checks
**************************************************************************/
@@ -89,6 +92,7 @@ ACC_COMPILE_TIME_ASSERT_HEADER(compile_time::string_le("abc", "abz"))
**************************************************************************/
TEST_CASE("ptr_reinterpret_cast") {
// check that we don't trigger any -Wcast-align warnings
using upx::ptr_reinterpret_cast;
byte *an = nullptr;
int *in = nullptr;
@@ -127,7 +131,6 @@ TEST_CASE("noncopyable") {
/*************************************************************************
// TriBool checks
// (modern compilers will optimize away most of this code)
**************************************************************************/
namespace {