mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Fix clang warnings about comparing uint32 < 0 (#10)
* Fix clang warnings about comparing uint32 < 0 clangs complains about an uint32 compared to < 0: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] So remove these comparisos and an uint32 never will be less than 0. Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com> * module-jack.c: Differentiate error msg from protocol-native Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
This commit is contained in:
parent
6afcb4981f
commit
b0c3936477
6 changed files with 6 additions and 6 deletions
|
|
@ -741,7 +741,7 @@ impl_enum_interface_info(const struct spa_handle_factory *factory,
|
|||
spa_return_val_if_fail(factory != NULL, SPA_RESULT_INVALID_ARGUMENTS);
|
||||
spa_return_val_if_fail(info != NULL, SPA_RESULT_INVALID_ARGUMENTS);
|
||||
|
||||
if (index < 0 || index >= SPA_N_ELEMENTS(impl_interfaces))
|
||||
if (index >= SPA_N_ELEMENTS(impl_interfaces))
|
||||
return SPA_RESULT_ENUM_END;
|
||||
|
||||
*info = &impl_interfaces[index];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue