Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TIC_UNUSED() to handle unused parameter warnings #1538

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

RobLoach
Copy link
Contributor

@RobLoach RobLoach commented Aug 7, 2021

This fixes the warnings generated in the libretro implementation, and adds a TIC_UNUSED() define to fix warnings from -Wunused-parameter.

For example...

TIC-80/src/system/libretro/tic80_libretro.c:1186:41: warning: unused parameter ‘index’ [-Wunused-parameter]
 1186 | RETRO_API void retro_cheat_set(unsigned index, bool enabled, const char *code)
      |                                ~~~~~~~~~^~~~~

Copy link
Owner

@nesbox nesbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for the help :)

@nesbox nesbox merged commit 9e54c1c into nesbox:master Aug 9, 2021
@RobLoach RobLoach deleted the unused branch May 2, 2022 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants