htrdr

Solving radiative transfer in heterogeneous media
git clone git://git.meso-star.fr/htrdr.git
Log | Files | Refs | README | LICENSE

commit 0f25267332dfe1827b46aabf65e3609b5875662d
parent 328431caec15f89af6f667eb9a430926982d8765
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 27 Sep 2023 11:36:52 +0200

Fix GCC warning "variable may be used unitialized"

Diffstat:
Mcmake/doc/CMakeLists.txt | 2+-
Msrc/atmosphere/htrdr_atmosphere_compute_radiance_sw.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmake/doc/CMakeLists.txt b/cmake/doc/CMakeLists.txt @@ -37,7 +37,7 @@ endif() ################################################################################ # ROFF man pages ################################################################################ -set(MAN_SOURCES +set(MAN_SOURCES ${HTRDR_DOC_DIR}/htrdr.1.scd ${HTRDR_DOC_DIR}/htrdr-image.5.scd ${HTRDR_DOC_DIR}/htrdr-materials.5.scd diff --git a/src/atmosphere/htrdr_atmosphere_compute_radiance_sw.c b/src/atmosphere/htrdr_atmosphere_compute_radiance_sw.c @@ -343,7 +343,7 @@ atmosphere_compute_radiance_sw for(;;) { struct scattering_context scattering_ctx = SCATTERING_CONTEXT_NULL; struct ssf_bsdf* bsdf = NULL; - struct ssf_phase* phase; + struct ssf_phase* phase = NULL; double N[3]; double bounce_reflectivity = 1; double sun_dir_pdf;