]> granicus.if.org Git - graphviz/commitdiff
Remove 1 -Wunused-but-set-variable warning in dtview.c
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 7 Nov 2020 12:37:41 +0000 (13:37 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 21 Nov 2020 08:03:15 +0000 (09:03 +0100)
lib/cdt/dthdr.h
lib/cdt/dtview.c

index cc73fd687ad2de8e9a1ee34524f44ec415def7b0..6972eebe38821b2a7bd02ec8441f9e3e01799bf9 100644 (file)
@@ -46,4 +46,6 @@
 #define RROTATE(x,y)   (rrotate(x,y), (x) = (y))
 #define LROTATE(x,y)   (lrotate(x,y), (x) = (y))
 
+#define NOTUSED(x)     (void)(x)
+
 #endif /* _DTHDR_H */
index 4ad36018a9e7b676f6b26609345b9b97dd2b843d..5f4f13ffe383694af30fb5aefa864d8d1b108e80 100644 (file)
@@ -12,6 +12,7 @@ static void* dtvsearch(Dt_t* dt, void* obj, int type)
        void            *o, *n, *ok, *nk;
        int             cmp, lk, sz, ky;
        Dtcompar_f      cmpf;
+       NOTUSED(lk);
 
        /* these operations only happen at the top level */
        if(type&(DT_INSERT|DT_DELETE|DT_CLEAR|DT_RENEW))