Browse Source

Prevent Visual Studio compiler warnings

pre-master-46
Holger Vogt 4 years ago
parent
commit
2547115eeb
  1. 4
      src/frontend/udevices.c

4
src/frontend/udevices.c

@ -254,6 +254,8 @@ static NAME_ENTRY find_name_entry(char *name, NAME_ENTRY nelist)
static void clear_name_list(NAME_ENTRY nelist, char *msg) static void clear_name_list(NAME_ENTRY nelist, char *msg)
{ {
NG_IGNORE(msg);
NAME_ENTRY x = NULL, next = NULL; NAME_ENTRY x = NULL, next = NULL;
if (!nelist) { return; } if (!nelist) { return; }
#ifdef TRACE #ifdef TRACE
@ -2415,7 +2417,7 @@ static void estimate_typ(struct timing_data *tdp)
if (strlen(tmpmin) > 0 && strlen(tmpmax) > 0) { if (strlen(tmpmin) > 0 && strlen(tmpmax) > 0) {
valmin = strtof(tmpmin, &units1); valmin = strtof(tmpmin, &units1);
valmax = strtof(tmpmax, &units2); valmax = strtof(tmpmax, &units2);
average = (valmin + valmax) / 2.0;
average = (valmin + valmax) / (float)2.0;
tdp->ave = tprintf("%.2f%s", average, units2); tdp->ave = tprintf("%.2f%s", average, units2);
if (!eq(units1, units2)) { if (!eq(units1, units2)) {
printf("WARNING units do not match\n"); printf("WARNING units do not match\n");

Loading…
Cancel
Save