diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-11-20 16:02:21 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-01-30 11:59:14 +0100 |
commit | a1f2429790eb4c7e106cd928cbb387fd5ba0aa46 (patch) | |
tree | f1e4adeb8b25886cf13d6daa5b1725ef8597f5e4 /libqcdm | |
parent | 305d927ee07d7e28de4133d0edf92722155c61cf (diff) |
libqcdm,reset: fix warnings with -Wdiscarded-qualifiers
reset.c: In function ‘main’:
reset.c:238:17: warning: passing argument 1 of ‘putenv’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
238 | putenv ("QCDM_DEBUG=1");
| ^~~~~~~~~~~~~~
In file included from reset.c:22:
/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));
| ~~~~~~^~~~~~~~
Diffstat (limited to 'libqcdm')
-rw-r--r-- | libqcdm/tests/reset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libqcdm/tests/reset.c b/libqcdm/tests/reset.c index fe8d896b..079ee386 100644 --- a/libqcdm/tests/reset.c +++ b/libqcdm/tests/reset.c @@ -235,7 +235,7 @@ main (int argc, char *argv[]) debug = 1; if (debug) - putenv ("QCDM_DEBUG=1"); + putenv ((char *)"QCDM_DEBUG=1"); fd = com_setup (dmport); if (fd < 0) |