Fix compiler warnings

Doing this on Arch Linux with gcc 4.8.0 helped find one real bug.

The rest are simply changes to make static functions externally visible
(as they are kept around to eventually become helpers used by Qt) which
for now avoids the warnings.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-05-03 14:16:09 -07:00
parent 060e5c764c
commit 98414ac9a9
4 changed files with 16 additions and 14 deletions

View file

@ -112,7 +112,7 @@ void convert_volume_pressure(int ml, int mbar, double *v, double *p)
*v = volume;
}
static int convert_weight(int grams, double *m)
int convert_weight(int grams, double *m)
{
int decimals = 1; /* not sure - do people do less than whole lbs/kg ? */
double weight;