libqcdm,modepref: fix warnings with -Wdiscarded-qualifiers

modepref.c: In function ‘main’:
  modepref.c:539:11: warning: passing argument 1 of ‘putenv’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
    539 |   putenv ("QCDM_DEBUG=1");
        |           ^~~~~~~~~~~~~~
  In file included from modepref.c:21:
  /usr/include/stdlib.h:647:26: note: expected ‘char *’ but argument is of type ‘const char *’
    647 | extern int putenv (char *__string) __THROW __nonnull ((1));
        |                    ~~~~~~^~~~~~~~
This commit is contained in:
Aleksander Morgado
2020-01-30 11:59:14 +01:00
parent 17a00ce1fc
commit c135c66684
+1 -1
View File
@@ -536,7 +536,7 @@ main (int argc, char *argv[])
}
if (debug)
putenv ("QCDM_DEBUG=1");
putenv ((char *)"QCDM_DEBUG=1");
fd = com_setup (dmport);
if (fd < 0)