Commit b8d7d324 authored by Vivien Raymond's avatar Vivien Raymond
Browse files

Fixed some compiling errors that appeared on conda with gcc

parent 3b544f86
......@@ -32,7 +32,7 @@ const char LALInferenceHDF5PosteriorSamplesDatasetName[] = "posterior_samples";
const char LALInferenceHDF5NestedSamplesDatasetName[] = "nested_samples";
static void assert_not_reached(void) __attribute__ ((noreturn));
static void assert_not_reached(void);
static void assert_not_reached(void)
{
#ifndef NDEBUG
......@@ -71,6 +71,7 @@ int LALInferenceH5DatasetToVariablesArray(
size_t column_offsets[Nvary];
LALInferenceVariableType column_types[Nvary];
int ret;
(void) ret;
for (size_t i = 0; i < Nvary; i ++)
{
......@@ -182,6 +183,7 @@ int LALInferenceH5DatasetToVariablesArray(
va[j], pname, value, lalinftype, LALINFERENCE_PARAM_FIXED);
} /* End loop over fixed_params */
/* Construct the array of LALInferenceVariables */
*varsArray = va;
*N = Nsamples;
......@@ -279,6 +281,7 @@ int LALInferenceH5VariablesArrayToDataset(
assert(dataset);
int ret = XLALH5TableAppend(
dataset, column_offsets, column_sizes, N, type_size, data);
(void) ret;
assert(ret == 0);
XLALFree(data);
......
......@@ -248,7 +248,7 @@ static void u_points_weights_init(void)
/* Look up Gauss-Legendre abscissa and weight. */
int ret = gsl_integration_glfixed_point(
-1, 1, iu, &u_points_weights[iu][0], &weight, gltable);
(void) ret;
/* Don't bother checking return value; the only
* possible failure is in index bounds checking. */
assert(ret == GSL_SUCCESS);
......@@ -504,6 +504,7 @@ static void bayestar_init_func(void)
static void bayestar_init(void)
{
int ret = pthread_once(&bayestar_init_once, bayestar_init_func);
(void) ret;
assert(ret == 0);
}
......
......@@ -77,6 +77,7 @@ void dVC_dVL_init(void)
for (size_t i = 0; i < len; i ++)
x[i] = dVC_dVL_tmin + i * dVC_dVL_dt;
int ret = gsl_spline_init(dVC_dVL_interp, x, dVC_dVL_data, len);
(void) ret;
assert(ret == GSL_SUCCESS);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment