Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file.
### Compilation

- Add Compile flag `MSTD_IGNORE_BUGGY_CODE` to ignore any kind of warnings for buggy libraries or headers
- Add exhaustive error flags for compilation

<!-- insertion marker -->
## [0.0.2](https://github.com/97gamjak/mstd/releases/tag/0.0.2) - 2025-11-20
Expand Down
34 changes: 34 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,40 @@ target_compile_features(mstd
cxx_std_20
)

if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(mstd INTERFACE
-Wall
-Wextra
-Wpedantic
-Werror

# correctness
-Wshadow
-Wconversion
-Wsign-conversion
-Wcast-align
-Wformat=2
-Wnull-dereference
-Wdouble-promotion
-Wimplicit-fallthrough
-Woverloaded-virtual
-Wnon-virtual-dtor
-Wold-style-cast
-Wuseless-cast
-Wduplicated-cond
-Wduplicated-branches
-Wlogical-op
-Wmisleading-indentation

# lifetime / safety
-Wuninitialized
-Wmaybe-uninitialized
-Winit-self

-Wno-error=deprecated-declarations
)
endif()

if(MSTD_BUILD_TESTS)
include(CTest)
enable_testing()
Expand Down
2 changes: 1 addition & 1 deletion include/mstd/pack/integer_pack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ namespace mstd
if (vals[i] != 0)
return i;

return -1;
return static_cast<size_t>(-1);
}
};

Expand Down
2 changes: 2 additions & 0 deletions include/mstd/physics/potentials/lie_potential.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ namespace mstd
Rep _coeff2{};

public:
virtual ~LiePotential() = default;

/**
* @brief Constructs the potential with prefactors for the attractive
* and repulsive terms.
Expand Down
Loading