Emitter magic - Mend some compiler warnings

unused variables & args
This commit is contained in:
Bill Kendrick 2025-04-19 12:50:44 -07:00
parent a79ac184c5
commit 340e243cf6

View file

@ -4,7 +4,7 @@
"Emitter" Magic Tool Plugin "Emitter" Magic Tool Plugin
Tux Paint - A simple drawing program for children. Tux Paint - A simple drawing program for children.
Copyright (c) 2024-2024 by Bill Kendrick and others; see AUTHORS.txt Copyright (c) 2024-2025 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com bill@newbreedsoftware.com
https://tuxpaint.org/ https://tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt) (See COPYING.txt)
Last updated: December 26, 2024 Last updated: April 19, 2025
*/ */
#include <stdio.h> #include <stdio.h>
@ -282,7 +282,7 @@ char *emitter_get_description(magic_api *api ATTRIBUTE_UNUSED, int which, int mo
} }
void emitter_drag(magic_api *api, int which, SDL_Surface *canvas, void emitter_drag(magic_api *api, int which, SDL_Surface *canvas,
SDL_Surface *last, int ox, int oy, int x, int y, SDL_Rect *update_rect) SDL_Surface *last, int ox ATTRIBUTE_UNUSED, int oy ATTRIBUTE_UNUSED, int x, int y, SDL_Rect *update_rect)
{ {
int i, img; int i, img;
SDL_Surface *tmpSurf, *srcSurf; SDL_Surface *tmpSurf, *srcSurf;
@ -376,7 +376,6 @@ void emitter_drag(magic_api *api, int which, SDL_Surface *canvas,
if (tmpSurf != NULL) if (tmpSurf != NULL)
{ {
int xx, yy;
Uint32 amask; Uint32 amask;
SDL_Surface *tmpSurf2; SDL_Surface *tmpSurf2;
Uint8 r, g, b, a; Uint8 r, g, b, a;
@ -449,9 +448,9 @@ void emitter_click(magic_api *api, int which, int mode ATTRIBUTE_UNUSED,
emitter_drag(api, which, canvas, last, x, y, x, y, update_rect); emitter_drag(api, which, canvas, last, x, y, x, y, update_rect);
} }
void emitter_release(magic_api *api, int which, void emitter_release(magic_api *api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED,
SDL_Surface *canvas, SDL_Surface *last ATTRIBUTE_UNUSED, SDL_Surface *canvas ATTRIBUTE_UNUSED, SDL_Surface *last ATTRIBUTE_UNUSED,
int x, int y ATTRIBUTE_UNUSED, SDL_Rect *update_rect ATTRIBUTE_UNUSED) int x ATTRIBUTE_UNUSED, int y ATTRIBUTE_UNUSED, SDL_Rect *update_rect ATTRIBUTE_UNUSED)
{ {
} }
@ -463,7 +462,7 @@ void emitter_shutdown(magic_api *api ATTRIBUTE_UNUSED)
Mix_FreeChunk(emitter_snds[i]); Mix_FreeChunk(emitter_snds[i]);
} }
void emitter_set_color(magic_api *api, int which ATTRIBUTE_UNUSED, void emitter_set_color(magic_api *api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED,
SDL_Surface *canvas ATTRIBUTE_UNUSED, SDL_Surface *canvas ATTRIBUTE_UNUSED,
SDL_Surface *last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, SDL_Surface *last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g,
Uint8 b, SDL_Rect *update_rect ATTRIBUTE_UNUSED) Uint8 b, SDL_Rect *update_rect ATTRIBUTE_UNUSED)