From 47a380a2ae6b68cbe8b6dfc5c2ea0c37745b92b0 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 20 Nov 2019 16:00:32 +0100 Subject: libqcdm,ipv6pref: fix warnings with -Wdiscarded-qualifiers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ipv6pref.c: In function ‘main’: ipv6pref.c:288:11: warning: passing argument 1 of ‘putenv’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 288 | putenv ("QCDM_DEBUG=1"); | ^~~~~~~~~~~~~~ --- libqcdm/tests/ipv6pref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libqcdm') diff --git a/libqcdm/tests/ipv6pref.c b/libqcdm/tests/ipv6pref.c index aa9c9702..f5bd71c4 100644 --- a/libqcdm/tests/ipv6pref.c +++ b/libqcdm/tests/ipv6pref.c @@ -285,7 +285,7 @@ main (int argc, char *argv[]) } if (debug) - putenv ("QCDM_DEBUG=1"); + putenv ((char *)"QCDM_DEBUG=1"); fd = com_setup (dmport); if (fd < 0) -- cgit v1.2.3-70-g09d2