Skip to content

Conversation

Sackzement
Copy link
Contributor

Fixed these two warnings:

[ 28%] Building C object CMakeFiles/SDL3-shared.dir/src/audio/alsa/SDL_alsa_audio.c.o
/path/to/SDL/src/audio/alsa/SDL_alsa_audio.c:101:23: warning: redundant redeclaration ofALSA_snd_pcm_info_get_subdevices_count’ [-Wredundant-decls]
  101 | static unsigned int (*ALSA_snd_pcm_info_get_subdevices_count)(const snd_pcm_info_t *);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/path/to/SDL/src/audio/alsa/SDL_alsa_audio.c:96:23: note: previous declaration ofALSA_snd_pcm_info_get_subdevices_countwith typeunsigned int (*)(const snd_pcm_info_t *)’ {akaunsigned int (*)(const struct _snd_pcm_info *)’}
   96 | static unsigned int (*ALSA_snd_pcm_info_get_subdevices_count)(const snd_pcm_info_t *);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[ 43%] Building C object CMakeFiles/SDL3-shared.dir/src/haptic/hidapi/SDL_hidapihaptic.c.o
/path/to/SDL/src/haptic/hidapi/SDL_hidapihaptic.c:30:34: warning: redundant redeclaration ofSDL_HIDAPI_JoystickDriver’ [-Wredundant-decls]
   30 | extern struct SDL_JoystickDriver SDL_HIDAPI_JoystickDriver;
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /path/to/SDL/src/haptic/hidapi/SDL_hidapihaptic_c.h:29,
                 from /path/to/SDL/src/haptic/hidapi/SDL_hidapihaptic.c:26:
/path/to/SDL/src/haptic/hidapi/../../joystick/SDL_sysjoystick.h:253:27: note: previous declaration ofSDL_HIDAPI_JoystickDriverwith typeSDL_JoystickDriver253 | extern SDL_JoystickDriver SDL_HIDAPI_JoystickDriver;
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~

@sezero sezero merged commit 1749aba into libsdl-org:main Aug 1, 2025
41 checks passed
@Sackzement Sackzement deleted the Wredundant-decls branch August 1, 2025 15:36
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