Fixed unused-parameters/unused-variables warnings

Added a ARG_UNUSED macro in utils/magic.h, which
produces a simple cast to void to silence the warnings.
The reasons this is used as opposed to an attribute is
that most compilers should support this.
Besides this, the macro can be easily searched for in
the future to potentially remove (where possible) the
unused parameters.
This commit is contained in:
Patrick Kurth
2025-10-10 22:12:19 +02:00
parent 27c423c2ed
commit ea03883829
183 changed files with 642 additions and 528 deletions
+1 -1
View File
@@ -90,6 +90,7 @@ CmdPlot(w, cmd)
MagWindow *w;
TxCommand *cmd;
{
ARG_UNUSED(w);
int option;
const char * const *msg;
MagWindow *window;
@@ -97,7 +98,6 @@ CmdPlot(w, cmd)
TileTypeBitMask mask;
CellDef *boxRootDef;
SearchContext scx;
float width;
int iwidth, scale;
#if defined(HAVE_LIBCAIRO) && defined(MAGIC_WRAPPER)