mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-01 02:28:41 +02:00
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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user