There are several instances where function declarations and definitions do not match. This PR adds #include "libfglm.h" to fglm_core.c to catch future mismatches. The change to msolve_ff is undoubtedly wrong, but I wasn't sure where to get hold of an appropriate stat_t in that function.
This came up because I am evaluating msolve for possible inclusion in the Fedora Linux distribution. We build packages with LTO (specifically -flto=auto -ffat-lto-objects), and with -Wall. With LTO enabled, -Wall includes -Wlto-type-mismatch, which reported these issues.
There are several instances where function declarations and definitions do not match. This PR adds
#include "libfglm.h"
tofglm_core.c
to catch future mismatches. The change tomsolve_ff
is undoubtedly wrong, but I wasn't sure where to get hold of an appropriatestat_t
in that function.This came up because I am evaluating msolve for possible inclusion in the Fedora Linux distribution. We build packages with LTO (specifically -flto=auto -ffat-lto-objects), and with -Wall. With LTO enabled, -Wall includes -Wlto-type-mismatch, which reported these issues.