Skip to content

Commit

Permalink
Turned on compiler warnings and fixed the associated issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Jun 25, 2024
1 parent 8bd08d4 commit 7a2665c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/scran/block_weights.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct VariableParameters {
* @param u Upper bound for the block weight calculation, should be not less than `l`.
* This should be greater than `l`.
*/
constexpr VariableParameters(double l = 0, double u = 1000) : upper_bound(u), lower_bound(l) {}
constexpr VariableParameters(double l = 0, double u = 1000) : lower_bound(l), upper_bound(u) {}

/**
* Lower bound for the block weight calculation.
Expand Down
2 changes: 2 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ macro(create_test name)
scran_test_utils
)

target_compile_options(${name} PRIVATE -Wall -Werror -Wpedantic -Wextra)

if(DO_CODE_COVERAGE)
target_compile_options(${name} PRIVATE -O0 -g --coverage)
target_link_options(${name} PRIVATE --coverage)
Expand Down

0 comments on commit 7a2665c

Please sign in to comment.