diff gtk3/dw.c @ 2159:48172881415c

GTK: Add DW_UNUSED() macro for defining variables that may be unused. Move the compiler macro section to the top of dw.h for use all over. Use DW_UNUSED() to avoid several expected warnings in the GTK code.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 29 Sep 2020 04:06:20 +0000
parents df3ee6273557
children 07f1366a724c
line wrap: on
line diff
--- a/gtk3/dw.c	Mon Sep 28 20:27:11 2020 +0000
+++ b/gtk3/dw.c	Tue Sep 29 04:06:20 2020 +0000
@@ -8384,7 +8384,7 @@
    {
       FD_ZERO(&rd);
       FD_SET(listenfd, &rd);
-      int result;
+      int DW_UNUSED(result);
 
       maxfd = listenfd;