Introduce __attribute__((unused)) (#defined to UNUSED_ATTR) to mark possibly unused... unused
commit7a6ace1467b9caeca12bd988dcdd3b74ffbf3da9
authorThomas Martitz <thomas.martitz@student.htw-berlin.de>
Mon, 3 Aug 2009 04:33:38 +0000 (3 06:33 +0200)
committerThomas Martitz <thomas.martitz@student.htw-berlin.de>
Tue, 11 Aug 2009 22:12:35 +0000 (11 22:12 +0000)
tree4c14f38f6a1a2abc571bf24005c0ff8afd050b92
parente655c58189197ca432e98a3d959d7d4e74a45c58
Introduce __attribute__((unused)) (#defined to UNUSED_ATTR) to mark possibly unused paramters in functions, removing the need to do "(void)var;" to reduce compiler warnings and giving better readable code.

Adapt plugins to use it.
-change all plugin_start() to plugin_start(UNUSED_ATTR const void* parameter) and remove the (void)parameter.
-change cleanup functions passed to default_event_handler_ex to be "static void cleanup(UNUSED_ATTR void* paramter)"

-I didn't change importet code, that may still do (void)var; I didn't change custom callbacks or callbacks for other core (list callback, event callback) functions yet.

Unless -Ox is passed to gcc, this should also give a decent binsize reduce.
128 files changed:
apps/plugin.h
apps/plugins/alpine_cdc.c
apps/plugins/battery_bench.c
apps/plugins/beatbox/beatbox.c
apps/plugins/bench_mem_jpeg.c
apps/plugins/bench_scaler.c
apps/plugins/blackjack.c
apps/plugins/bounce.c
apps/plugins/brickmania.c
apps/plugins/bubbles.c
apps/plugins/calculator.c
apps/plugins/calendar.c
apps/plugins/chessbox.c
apps/plugins/chessbox/chessbox.c
apps/plugins/chessclock.c
apps/plugins/chip8.c
apps/plugins/chopper.c
apps/plugins/clix.c
apps/plugins/clock/clock.c
apps/plugins/credits.c
apps/plugins/cube.c
apps/plugins/demystify.c
apps/plugins/dice.c
apps/plugins/dict.c
apps/plugins/disktidy.c
apps/plugins/doom/rockdoom.c
apps/plugins/euroconverter.c
apps/plugins/fire.c
apps/plugins/fireworks.c
apps/plugins/firmware_flash.c
apps/plugins/flipit.c
apps/plugins/goban.c
apps/plugins/goban/goban.c
apps/plugins/greyscale.c
apps/plugins/helloworld.c
apps/plugins/iriver_flash.c
apps/plugins/iriverify.c
apps/plugins/jackpot.c
apps/plugins/jewels.c
apps/plugins/jpeg/jpeg.c
apps/plugins/keybox.c
apps/plugins/lamp.c
apps/plugins/lib/pluginlib_actions.c
apps/plugins/lib/profile_plugin.c
apps/plugins/logo.c
apps/plugins/lua.c
apps/plugins/lua/rocklua.c
apps/plugins/mandelbrot.c
apps/plugins/matrix.c
apps/plugins/maze.c
apps/plugins/mazezam.c
apps/plugins/md5sum.c
apps/plugins/metronome.c
apps/plugins/midi/midiplay.c
apps/plugins/minesweeper.c
apps/plugins/mosaique.c
apps/plugins/mp3_encoder.c
apps/plugins/mpegplayer/mpegplayer.c
apps/plugins/nim.c
apps/plugins/oscilloscope.c
apps/plugins/pacbox/pacbox.c
apps/plugins/pdbox/pdbox.c
apps/plugins/pegbox.c
apps/plugins/pictureflow.c
apps/plugins/pictureflow/pictureflow.c
apps/plugins/plasma.c
apps/plugins/png/png.c
apps/plugins/pong.c
apps/plugins/ppmviewer.c
apps/plugins/properties.c
apps/plugins/random_folder_advance_config.c
apps/plugins/remote_control.c
apps/plugins/reversi/reversi-gui.c
apps/plugins/robotfindskitten.c
apps/plugins/rockblox.c
apps/plugins/rockblox1d.c
apps/plugins/rockbox_flash.c
apps/plugins/rockboy.c
apps/plugins/rockboy/rockboy.c
apps/plugins/rocklife.c
apps/plugins/rockpaint.c
apps/plugins/search.c
apps/plugins/searchengine/searchengine.c
apps/plugins/settings_dumper.c
apps/plugins/shortcuts/shortcuts_append.c
apps/plugins/shortcuts/shortcuts_view.c
apps/plugins/snake.c
apps/plugins/snake2.c
apps/plugins/snow.c
apps/plugins/sokoban.c
apps/plugins/solitaire.c
apps/plugins/sort.c
apps/plugins/spacerocks.c
apps/plugins/splitedit.c
apps/plugins/star.c
apps/plugins/starfield.c
apps/plugins/stats.c
apps/plugins/stopwatch.c
apps/plugins/sudoku/sudoku.c
apps/plugins/superdom.c
apps/plugins/test_boost.c
apps/plugins/test_codec.c
apps/plugins/test_core_jpeg.c
apps/plugins/test_disk.c
apps/plugins/test_fps.c
apps/plugins/test_gfx.c
apps/plugins/test_grey.c
apps/plugins/test_greylib_bitmap_scale.c
apps/plugins/test_mem_jpeg.c
apps/plugins/test_resize.c
apps/plugins/test_sampr.c
apps/plugins/test_scanrate.c
apps/plugins/test_touchscreen.c
apps/plugins/test_viewports.c
apps/plugins/text_editor.c
apps/plugins/vbrfix.c
apps/plugins/video.c
apps/plugins/viewer.c
apps/plugins/vu_meter.c
apps/plugins/wav2wv.c
apps/plugins/wavplay.c
apps/plugins/wavrecord.c
apps/plugins/wavview.c
apps/plugins/wormlet.c
apps/plugins/xobox.c
apps/plugins/zxbox.c
apps/plugins/zxbox/zxbox.c
firmware/export/system.h