Skip to content

Commit

Permalink
fixed cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
xanthospap committed Sep 21, 2024
1 parent 62b5101 commit 6e9aee6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions test/sofa/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
add_compile_options(-Wno-unused-but-set-variable)
add_compile_options(-Wno-unused-variable)

add_executable(cal2jd cal2jd.cpp)
add_executable(jd2cal jd2cal.cpp)
add_executable(dat dat.cpp)
Expand Down
2 changes: 1 addition & 1 deletion test/sofa/dat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ int main() {
std::uniform_int_distribution<> mdstr(1, 12); /* range for months */
std::uniform_int_distribution<> ddstr(1, 31); /* range for day of month */

double jd0, jd1;
double jd0=0, jd1=0;
for (long i = 0; i < num_tests; i++) {
const int iy = ydstr(gen);
const int im = mdstr(gen);
Expand Down
3 changes: 3 additions & 0 deletions test/unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# add_compile_options(-Wno-unused-variable)
add_compile_options(-Wno-unused-but-set-variable)
add_compile_options(-Wno-unused-variable)

add_executable(test_datetime datetime.cpp)
target_link_libraries(test_datetime PRIVATE datetime)
Expand Down

0 comments on commit 6e9aee6

Please sign in to comment.