From: Magnus Jacobsson <Magnus.Jacobsson@berotec.se> Date: Sat, 7 Nov 2020 12:37:41 +0000 (+0100) Subject: Remove 1 -Wunused-but-set-variable warning in dtview.c X-Git-Tag: 2.46.0~11^2~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad77363bba3e89cd624440c26811f2aa42158c1e;p=graphviz Remove 1 -Wunused-but-set-variable warning in dtview.c --- diff --git a/lib/cdt/dthdr.h b/lib/cdt/dthdr.h index cc73fd687..6972eebe3 100644 --- a/lib/cdt/dthdr.h +++ b/lib/cdt/dthdr.h @@ -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 */ diff --git a/lib/cdt/dtview.c b/lib/cdt/dtview.c index 4ad36018a..5f4f13ffe 100644 --- a/lib/cdt/dtview.c +++ b/lib/cdt/dtview.c @@ -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))