[warnings] silence WINPR_FALLTHROGH

This commit is contained in:
akallabeth
2024-08-30 14:22:37 +02:00
parent 190929c018
commit 7d3b2aebfd
3 changed files with 7 additions and 5 deletions

View File

@@ -1435,10 +1435,12 @@ BOOL freerdp_dsp_supports_format(const AUDIO_FORMAT* WINPR_RESTRICT format, BOOL
#endif
#if defined(WITH_OPUS)
/* fallthrough */
WINPR_FALLTHROUGH
case WAVE_FORMAT_OPUS:
return opus_is_valid_samplerate(format);
#endif
/* fallthrough */
WINPR_FALLTHROUGH
default:
return FALSE;

View File

@@ -33,13 +33,13 @@
// C23 related macros
#if defined(__STDC__) && defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 202311L)
#define WINPR_FALLTHROUGH [[fallthrough]];
#define WINPR_FALLTHROUGH (void)0; [[fallthrough]];
#elif defined(__clang__)
#define WINPR_FALLTHROUGH __attribute__((fallthrough));
#define WINPR_FALLTHROUGH (void)0; __attribute__((fallthrough));
#elif defined(__GNUC__) && (__GNUC__ >= 7)
#define WINPR_FALLTHROUGH __attribute__((fallthrough));
#define WINPR_FALLTHROUGH (void)0; __attribute__((fallthrough));
#else
#define WINPR_FALLTHROUGH
#define WINPR_FALLTHROUGH (void)0;
#endif
/* Set by CMake during configuration */

View File

@@ -875,7 +875,7 @@ static SECURITY_STATUS SEC_ENTRY kerberos_InitializeSecurityContextA(
goto bad_token;
/* Continue to AP-REQ */
/* fall through */
/* fallthrough */
WINPR_FALLTHROUGH
case KERBEROS_STATE_AP_REQ: