Skip to content

Commit

Permalink
fix latest warinings in gcc/g++/clang
Browse files Browse the repository at this point in the history
  • Loading branch information
relleums committed May 25, 2024
1 parent 4d01739 commit 6a6bd12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/mli/src/mli_photon_propagation.test.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ CASE("simple propagation")

CHECK(history.size >= 1);

mliDynPhotonInteraction_print(&history, &scenery.geometry);
mliDynPhotonInteraction_print(&history, &scenery);

mliScenery_free(&scenery);
mliDynPhotonInteraction_free(&history);
Expand Down
4 changes: 2 additions & 2 deletions libs/mli_corsika/src/mli_corsika_ray_voxel_overlap.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ void mli_corsika_overlap_of_ray_with_voxels(
{
double support[3];
double direction[3];
struct mliVec _direction = {0};
struct mliVec _direction = mliVec_init(0.0, 0.0, 0.0);

unsigned int number_overlaps = 0u;
unsigned int x_range[2];
Expand Down Expand Up @@ -314,4 +314,4 @@ void mli_corsika_overlap_of_ray_with_voxels(
y_idxs->size = number_overlaps;
z_idxs->size = number_overlaps;
overlaps->size = number_overlaps;
}
}

0 comments on commit 6a6bd12

Please sign in to comment.