mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 08:24:16 +09:00
[warnings] silence WINPR_FALLTHROGH
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user