atrstm

Load and structure a combustion gas mixture
git clone git://git.meso-star.fr/atrstm.git
Log | Files | Refs | README | LICENSE

commit 319a5ef9622d6c11e4ab87021820e6adbc596411
parent 1fc346b4c21aff31645142c1b2a9790ed54d77b3
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue,  4 May 2021 14:39:54 +0000

Fix warnings for GCC 4.9.2

Diffstat:
Msrc/atrstm_cache.c | 2++
Msrc/atrstm_radcoefs.h | 4++--
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/atrstm_cache.c b/src/atrstm_cache.c @@ -13,6 +13,8 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#define _POSIX_C_SOURCE 200112L /* fdopen */ + #include "atrstm_c.h" #include "atrstm_cache.h" #include "atrstm_log.h" diff --git a/src/atrstm_radcoefs.h b/src/atrstm_radcoefs.h @@ -28,7 +28,7 @@ struct radcoefs { double ks; /* Scattering coefficient */ double kext; /* Extinction coefficient */ }; -#define RADCOEFS_NULL__ {0} +#define RADCOEFS_NULL__ {0,0,0} static const struct radcoefs RADCOEFS_NULL = RADCOEFS_NULL__; struct radcoefs_compute_args { @@ -42,7 +42,7 @@ struct radcoefs_compute_args { double soot_primary_particles_diameter; /* In nm */ int radcoefs_mask; /* Combination of atrstm_radcoef_flag */ }; -#define RADCOEFS_COMPUTE_ARGS_NULL__ {0} +#define RADCOEFS_COMPUTE_ARGS_NULL__ {0,0,0,0,0,0,0,0,0} static const struct radcoefs_compute_args RADCOEFS_COMPUTE_ARGS_NULL = RADCOEFS_COMPUTE_ARGS_NULL__;