From 4d932f800be2a22d3e747e24c18919588b93c05d Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Sun, 12 Feb 2023 13:17:49 -0800 Subject: [PATCH] Add ATTRIBUTE_UNUSED back to MAGIC_set_color() funcs Avoid compile time warnings --- magic/src/blind.c | 6 +++--- magic/src/blocks_chalk_drip.c | 6 +++--- magic/src/blur.c | 6 +++--- magic/src/bricks.c | 6 +++--- magic/src/calligraphy.c | 6 +++--- magic/src/cartoon.c | 6 +++--- magic/src/checkerboard.c | 6 +++--- magic/src/clone.c | 6 +++--- magic/src/confetti.c | 6 +++--- magic/src/distortion.c | 6 +++--- magic/src/emboss.c | 6 +++--- magic/src/fade_darken.c | 6 +++--- magic/src/fisheye.c | 7 +++---- magic/src/flower.c | 6 +++--- magic/src/foam.c | 6 +++--- magic/src/fold.c | 6 +++--- magic/src/fretwork.c | 6 +++--- magic/src/glasstile.c | 6 +++--- magic/src/googlyeyes.c | 6 +++--- magic/src/grass.c | 6 +++--- magic/src/halftone.c | 6 +++--- magic/src/kalidescope.c | 6 +++--- magic/src/light.c | 6 +++--- magic/src/lightning.c | 6 +++--- magic/src/metalpaint.c | 6 +++--- magic/src/mirror_flip.c | 6 +++--- magic/src/mosaic.c | 6 +++--- magic/src/mosaic_shaped.c | 6 +++--- magic/src/negative.c | 6 +++--- magic/src/noise.c | 6 +++--- magic/src/pixels.c | 6 +++--- magic/src/puzzle.c | 6 +++--- magic/src/rails.c | 6 +++--- magic/src/rain.c | 6 +++--- magic/src/rainbow.c | 6 +++--- magic/src/realrainbow.c | 6 +++--- magic/src/reflection.c | 6 +++--- magic/src/ripples.c | 6 +++--- magic/src/rosette.c | 6 +++--- magic/src/sharpen.c | 6 +++--- magic/src/shift.c | 6 +++--- magic/src/smudge.c | 6 +++--- magic/src/snow.c | 6 +++--- magic/src/stretch.c | 6 +++--- magic/src/string.c | 6 +++--- magic/src/tint.c | 6 +++--- magic/src/toothpaste.c | 6 +++--- magic/src/tornado.c | 6 +++--- magic/src/tv.c | 7 +++---- magic/src/waves.c | 6 +++--- magic/src/xor.c | 6 +++--- 51 files changed, 153 insertions(+), 155 deletions(-) diff --git a/magic/src/blind.c b/magic/src/blind.c index eda8995e1..2ee337924 100644 --- a/magic/src/blind.c +++ b/magic/src/blind.c @@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include "tp_magic_api.h" @@ -88,8 +88,8 @@ Uint32 blind_api_version(void) return (TP_MAGIC_API_VERSION); } -void blind_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void blind_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { //get the colors from API and store it in structure blind_r = r; diff --git a/magic/src/blocks_chalk_drip.c b/magic/src/blocks_chalk_drip.c index d72d11e11..e0357b9f1 100644 --- a/magic/src/blocks_chalk_drip.c +++ b/magic/src/blocks_chalk_drip.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -432,8 +432,8 @@ void blocks_chalk_drip_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void blocks_chalk_drip_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void blocks_chalk_drip_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/blur.c b/magic/src/blur.c index f84bd362b..093af3835 100644 --- a/magic/src/blur.c +++ b/magic/src/blur.c @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -310,8 +310,8 @@ void blur_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void blur_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void blur_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/bricks.c b/magic/src/bricks.c index 7311996b4..828c8090f 100644 --- a/magic/src/bricks.c +++ b/magic/src/bricks.c @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -296,8 +296,8 @@ void bricks_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void bricks_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void bricks_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { bricks_r = r; bricks_g = g; diff --git a/magic/src/calligraphy.c b/magic/src/calligraphy.c index a6477ee30..c52984f4e 100644 --- a/magic/src/calligraphy.c +++ b/magic/src/calligraphy.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -320,8 +320,8 @@ void calligraphy_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // We don't use colors -void calligraphy_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void calligraphy_set_color(magic_api * api, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { int x, y; Uint8 a; diff --git a/magic/src/cartoon.c b/magic/src/cartoon.c index 1fa28f684..63923e409 100644 --- a/magic/src/cartoon.c +++ b/magic/src/cartoon.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -313,8 +313,8 @@ void cartoon_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void cartoon_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void cartoon_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/checkerboard.c b/magic/src/checkerboard.c index 1c04766d9..3b8bdf4f3 100644 --- a/magic/src/checkerboard.c +++ b/magic/src/checkerboard.c @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include "tp_magic_api.h" @@ -74,8 +74,8 @@ Uint32 checkerboard_api_version(void) return (TP_MAGIC_API_VERSION); } -void checkerboard_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void checkerboard_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { //get the colors from API and store it in structure checkerboard_r = r; diff --git a/magic/src/clone.c b/magic/src/clone.c index 2e3531f60..0ff07d5e1 100644 --- a/magic/src/clone.c +++ b/magic/src/clone.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -346,8 +346,8 @@ void clone_shutdown(magic_api * api ATTRIBUTE_UNUSED) Mix_FreeChunk(clone_start_snd); } -void clone_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void clone_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/confetti.c b/magic/src/confetti.c index 1b6ec24c2..867c1566a 100644 --- a/magic/src/confetti.c +++ b/magic/src/confetti.c @@ -1,5 +1,5 @@ /* - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include //For time() @@ -62,8 +62,8 @@ Uint32 confetti_api_version(void) return (TP_MAGIC_API_VERSION); } -void confetti_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void confetti_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { //get the colors from API and store it in structure confetti_colors.r = r; diff --git a/magic/src/distortion.c b/magic/src/distortion.c index 3bc4cf0f6..b3e120b09 100644 --- a/magic/src/distortion.c +++ b/magic/src/distortion.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ /* Inclusion of header files: */ @@ -245,8 +245,8 @@ void distortion_release(magic_api * api ATTRIBUTE_UNUSED, } -void distortion_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void distortion_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/emboss.c b/magic/src/emboss.c index 5044243b0..f1325a232 100644 --- a/magic/src/emboss.c +++ b/magic/src/emboss.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -264,8 +264,8 @@ void emboss_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void emboss_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void emboss_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/fade_darken.c b/magic/src/fade_darken.c index df8211a41..d3c1ca437 100644 --- a/magic/src/fade_darken.c +++ b/magic/src/fade_darken.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -289,8 +289,8 @@ void fade_darken_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // We don't use colors -void fade_darken_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void fade_darken_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/fisheye.c b/magic/src/fisheye.c index efd18724f..bb5ea5b10 100644 --- a/magic/src/fisheye.c +++ b/magic/src/fisheye.c @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -76,10 +76,9 @@ Uint32 fisheye_api_version(void) return (TP_MAGIC_API_VERSION); } -void fisheye_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void fisheye_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { - } int fisheye_init(magic_api * api) diff --git a/magic/src/flower.c b/magic/src/flower.c index 8ad111832..1b94a0d23 100644 --- a/magic/src/flower.c +++ b/magic/src/flower.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -516,8 +516,8 @@ void flower_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void flower_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void flower_set_color(magic_api * api, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { flower_r = r; flower_g = g; diff --git a/magic/src/foam.c b/magic/src/foam.c index 453f52a88..c75e454de 100644 --- a/magic/src/foam.c +++ b/magic/src/foam.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -460,8 +460,8 @@ void foam_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void foam_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void foam_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { foam_r = r; foam_g = g; diff --git a/magic/src/fold.c b/magic/src/fold.c index d74ece1b6..df4865cf8 100644 --- a/magic/src/fold.c +++ b/magic/src/fold.c @@ -1,7 +1,7 @@ /* Folds the picture down from the corners. - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ //optimized version soon :) @@ -85,8 +85,8 @@ Uint32 fold_api_version(void) return (TP_MAGIC_API_VERSION); } -void fold_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void fold_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { //get the colors from API and store it in structure fold_r = r; diff --git a/magic/src/fretwork.c b/magic/src/fretwork.c index f6fac92ea..82b378e98 100644 --- a/magic/src/fretwork.c +++ b/magic/src/fretwork.c @@ -1,7 +1,7 @@ /* Draws fretwork - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include "tp_magic_api.h" @@ -107,8 +107,8 @@ int fretwork_modes(magic_api * api ATTRIBUTE_UNUSED, return (MODE_PAINT | MODE_FULLSCREEN); } -void fretwork_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void fretwork_set_color(magic_api * api, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { fretwork_r = r; fretwork_g = g; diff --git a/magic/src/glasstile.c b/magic/src/glasstile.c index 0e3f84d05..a8dae67d4 100644 --- a/magic/src/glasstile.c +++ b/magic/src/glasstile.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -329,8 +329,8 @@ void glasstile_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void glasstile_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void glasstile_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/googlyeyes.c b/magic/src/googlyeyes.c index 5c5fa55ff..d60752422 100644 --- a/magic/src/googlyeyes.c +++ b/magic/src/googlyeyes.c @@ -3,7 +3,7 @@ Draws a googly eye at the click position, and looks towards where you drag+release. - Last updated: February 11, 2023 + Last updated: February 12, 2023 */ #include @@ -295,8 +295,8 @@ googlyeyes_release(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, } -void googlyeyes_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void googlyeyes_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/grass.c b/magic/src/grass.c index 469327857..1dfbfbe13 100644 --- a/magic/src/grass.c +++ b/magic/src/grass.c @@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -189,8 +189,8 @@ void grass_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void grass_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void grass_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { grass_r = r; grass_g = g; diff --git a/magic/src/halftone.c b/magic/src/halftone.c index e8365fbe5..b9c5257d4 100644 --- a/magic/src/halftone.c +++ b/magic/src/halftone.c @@ -1,6 +1,6 @@ /* halftone.c - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ @@ -278,8 +278,8 @@ void halftone_release(magic_api * api ATTRIBUTE_UNUSED, { } -void halftone_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void halftone_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/kalidescope.c b/magic/src/kalidescope.c index 33b9391ec..019de08b4 100644 --- a/magic/src/kalidescope.c +++ b/magic/src/kalidescope.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -283,8 +283,8 @@ void kalidescope_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void kalidescope_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void kalidescope_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { kalidescope_r = r; kalidescope_g = g; diff --git a/magic/src/light.c b/magic/src/light.c index f2ce5ee61..41b52d145 100644 --- a/magic/src/light.c +++ b/magic/src/light.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -249,8 +249,8 @@ void light_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void light_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void light_set_color(magic_api * api, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { api->rgbtohsv(r, g, b, &light_h, &light_s, &light_v); } diff --git a/magic/src/lightning.c b/magic/src/lightning.c index b379367fc..daf71cdca 100644 --- a/magic/src/lightning.c +++ b/magic/src/lightning.c @@ -3,7 +3,7 @@ Draws a lightning strike between the click and drag+release positions. - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -301,8 +301,8 @@ void lightning_draw_bolt(void *ptr, SDL_Surface * canvas, } -void lightning_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void lightning_set_color(magic_api * api, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { api->rgbtohsv(r, g, b, &lightning_h, &lightning_s, &lightning_v); } diff --git a/magic/src/metalpaint.c b/magic/src/metalpaint.c index 40e81dbab..8373e6e9b 100644 --- a/magic/src/metalpaint.c +++ b/magic/src/metalpaint.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -220,8 +220,8 @@ void metalpaint_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void metalpaint_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void metalpaint_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { metalpaint_r = min(255, r + 64); metalpaint_g = min(255, g + 64); diff --git a/magic/src/mirror_flip.c b/magic/src/mirror_flip.c index fdde25224..fe83dd90b 100644 --- a/magic/src/mirror_flip.c +++ b/magic/src/mirror_flip.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -226,8 +226,8 @@ void mirror_flip_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // We don't use colors: -void mirror_flip_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void mirror_flip_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/mosaic.c b/magic/src/mosaic.c index d93b74aff..814f3750a 100644 --- a/magic/src/mosaic.c +++ b/magic/src/mosaic.c @@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -319,8 +319,8 @@ void mosaic_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void mosaic_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void mosaic_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/mosaic_shaped.c b/magic/src/mosaic_shaped.c index 8903ecc80..dcb710029 100644 --- a/magic/src/mosaic_shaped.c +++ b/magic/src/mosaic_shaped.c @@ -30,7 +30,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -384,8 +384,8 @@ void mosaic_shaped_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void mosaic_shaped_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void mosaic_shaped_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { mosaic_shaped_r = r; mosaic_shaped_g = g; diff --git a/magic/src/negative.c b/magic/src/negative.c index 64b552ac8..c70956ade 100644 --- a/magic/src/negative.c +++ b/magic/src/negative.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -294,8 +294,8 @@ void negative_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // We don't use colors -void negative_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void negative_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/noise.c b/magic/src/noise.c index 3f188366b..d1e2e40ba 100644 --- a/magic/src/noise.c +++ b/magic/src/noise.c @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -296,8 +296,8 @@ void noise_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void noise_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void noise_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/pixels.c b/magic/src/pixels.c index ac91b062e..c539bbd50 100644 --- a/magic/src/pixels.c +++ b/magic/src/pixels.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -206,8 +206,8 @@ void pixels_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void pixels_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void pixels_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { pixels_r = r; pixels_g = g; diff --git a/magic/src/puzzle.c b/magic/src/puzzle.c index d84f07149..ab55cec1c 100644 --- a/magic/src/puzzle.c +++ b/magic/src/puzzle.c @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ @@ -148,8 +148,8 @@ void puzzle_shutdown(magic_api * api ATTRIBUTE_UNUSED) Mix_FreeChunk(puzzle_snd); } -void puzzle_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void puzzle_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/rails.c b/magic/src/rails.c index dd6e939a6..8aac8e6f1 100644 --- a/magic/src/rails.c +++ b/magic/src/rails.c @@ -3,7 +3,7 @@ Draw train tracks. - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include "tp_magic_api.h" #include "SDL_image.h" @@ -99,8 +99,8 @@ int rails_modes(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED) return (MODE_PAINT); } -void rails_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void rails_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/rain.c b/magic/src/rain.c index 000154e3e..bd287ab2c 100644 --- a/magic/src/rain.c +++ b/magic/src/rain.c @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -305,8 +305,8 @@ void rain_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void rain_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void rain_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/rainbow.c b/magic/src/rainbow.c index 7511a7153..8c2f2db0e 100644 --- a/magic/src/rainbow.c +++ b/magic/src/rainbow.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -280,8 +280,8 @@ void rainbow_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void rainbow_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void rainbow_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/realrainbow.c b/magic/src/realrainbow.c index c0c57b5ff..37454dcc5 100644 --- a/magic/src/realrainbow.c +++ b/magic/src/realrainbow.c @@ -7,7 +7,7 @@ Math assistance by Jeff Newmiller 2009.04.02 - Last updated: January 25, 2023 + Last updated: February 12, 2023 FIXME: * Color/alpha art needs improvement. @@ -154,8 +154,8 @@ void realrainbow_shutdown(magic_api * api ATTRIBUTE_UNUSED) Mix_FreeChunk(realrainbow_snd); } -void realrainbow_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void realrainbow_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/reflection.c b/magic/src/reflection.c index 81325ca50..83e33fab8 100644 --- a/magic/src/reflection.c +++ b/magic/src/reflection.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -397,8 +397,8 @@ void reflection_shutdown(magic_api * api ATTRIBUTE_UNUSED) Mix_FreeChunk(reflection_snd); } -void reflection_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void reflection_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/ripples.c b/magic/src/ripples.c index 8dbd352be..ab97f1f1a 100644 --- a/magic/src/ripples.c +++ b/magic/src/ripples.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -215,8 +215,8 @@ void ripples_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void ripples_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void ripples_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/rosette.c b/magic/src/rosette.c index cac43cff3..fef0f85a8 100644 --- a/magic/src/rosette.c +++ b/magic/src/rosette.c @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ // sound only plays on release @@ -86,8 +86,8 @@ Uint32 rosette_api_version(void) return (TP_MAGIC_API_VERSION); } -void rosette_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void rosette_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { //get the colors from API and store it in structure rosette_colors.r = r; diff --git a/magic/src/sharpen.c b/magic/src/sharpen.c index 361e091f6..6161d685b 100644 --- a/magic/src/sharpen.c +++ b/magic/src/sharpen.c @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -371,8 +371,8 @@ void sharpen_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void sharpen_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void sharpen_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/shift.c b/magic/src/shift.c index 3b27e97e5..f01f5b106 100644 --- a/magic/src/shift.c +++ b/magic/src/shift.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -336,8 +336,8 @@ void shift_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void shift_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void shift_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/smudge.c b/magic/src/smudge.c index 86d9a4d26..a36b79771 100644 --- a/magic/src/smudge.c +++ b/magic/src/smudge.c @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -255,8 +255,8 @@ void smudge_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void smudge_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void smudge_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { smudge_r = r; smudge_g = g; diff --git a/magic/src/snow.c b/magic/src/snow.c index 4d68b9cd0..33f64d444 100644 --- a/magic/src/snow.c +++ b/magic/src/snow.c @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -285,8 +285,8 @@ void snow_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void snow_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void snow_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/stretch.c b/magic/src/stretch.c index ec5482c20..8ff18a707 100644 --- a/magic/src/stretch.c +++ b/magic/src/stretch.c @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include "tp_magic_api.h" @@ -83,8 +83,8 @@ Uint32 stretch_api_version(void) return (TP_MAGIC_API_VERSION); } -void stretch_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void stretch_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/string.c b/magic/src/string.c index 767f609f2..f2fa7e8ba 100644 --- a/magic/src/string.c +++ b/magic/src/string.c @@ -1,7 +1,7 @@ /* Strings -- draws string art. - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include "tp_magic_api.h" #include "SDL_image.h" @@ -96,8 +96,8 @@ int string_modes(magic_api * api ATTRIBUTE_UNUSED, int which) return (MODE_PAINT_WITH_PREVIEW); } -void string_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void string_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { string_r = r; string_g = g; diff --git a/magic/src/tint.c b/magic/src/tint.c index 0d71e1310..3e8f638a6 100644 --- a/magic/src/tint.c +++ b/magic/src/tint.c @@ -29,7 +29,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -323,8 +323,8 @@ void tint_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void tint_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void tint_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { tint_r = r; tint_g = g; diff --git a/magic/src/toothpaste.c b/magic/src/toothpaste.c index 10599223a..aa8f384d8 100644 --- a/magic/src/toothpaste.c +++ b/magic/src/toothpaste.c @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -282,8 +282,8 @@ void toothpaste_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void toothpaste_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void toothpaste_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { toothpaste_r = r; toothpaste_g = g; diff --git a/magic/src/tornado.c b/magic/src/tornado.c index fbec41b1e..bce698172 100644 --- a/magic/src/tornado.c +++ b/magic/src/tornado.c @@ -27,7 +27,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -483,8 +483,8 @@ void tornado_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void tornado_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void tornado_set_color(magic_api * api, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { tornado_r = r; tornado_g = g; diff --git a/magic/src/tv.c b/magic/src/tv.c index 5244b3ea4..9d3418e3a 100644 --- a/magic/src/tv.c +++ b/magic/src/tv.c @@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include "tp_magic_api.h" @@ -72,11 +72,10 @@ Uint32 tv_api_version(void) return (TP_MAGIC_API_VERSION); } -void tv_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void tv_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { //get the colors from API and store it in structure - } int tv_init(magic_api * api ATTRIBUTE_UNUSED) diff --git a/magic/src/waves.c b/magic/src/waves.c index 093d7694b..01abf7b47 100644 --- a/magic/src/waves.c +++ b/magic/src/waves.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -226,8 +226,8 @@ void waves_shutdown(magic_api * api ATTRIBUTE_UNUSED) } // Record the color from Tux Paint: -void waves_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void waves_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { } diff --git a/magic/src/xor.c b/magic/src/xor.c index 565da541a..1df796438 100644 --- a/magic/src/xor.c +++ b/magic/src/xor.c @@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - Last updated: January 25, 2023 + Last updated: February 12, 2023 */ #include @@ -223,8 +223,8 @@ void xor_shutdown(magic_api * api ATTRIBUTE_UNUSED) Mix_FreeChunk(xor_snd); } -void xor_set_color(magic_api * api, int which, SDL_Surface * canvas, - SDL_Surface * last, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect) +void xor_set_color(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, SDL_Surface * canvas ATTRIBUTE_UNUSED, + SDL_Surface * last ATTRIBUTE_UNUSED, Uint8 r ATTRIBUTE_UNUSED, Uint8 g ATTRIBUTE_UNUSED, Uint8 b ATTRIBUTE_UNUSED, SDL_Rect * update_rect ATTRIBUTE_UNUSED) { }