diff mbox series

[uclibc-ng-devel] spawn.h: fix compiler warning about unused variable

Message ID 20250320090906.7322-1-marcus.haehnel@kernkonzept.com
State Accepted
Headers show
Series [uclibc-ng-devel] spawn.h: fix compiler warning about unused variable | expand

Commit Message

Marcus Haehnel March 20, 2025, 9:08 a.m. UTC
From: Frank Mehnert <frank.mehnert@kernkonzept.com>

Avoid the warning by marking the unused parameter appropriately.

Signed-off-by: Marcus Haehnel <marcus.haehnel@kernkonzept.com>
---
 include/spawn.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Waldemar Brodkorb March 27, 2025, 10:46 a.m. UTC | #1
Hi,

applied, tested and pushed,

best regards
 Waldemar

Marcus Haehnel wrote,

> From: Frank Mehnert <frank.mehnert@kernkonzept.com>
> 
> Avoid the warning by marking the unused parameter appropriately.
> 
> Signed-off-by: Marcus Haehnel <marcus.haehnel@kernkonzept.com>
> ---
>  include/spawn.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/spawn.h b/include/spawn.h
> index 3de375b41..cf01639c1 100644
> --- a/include/spawn.h
> +++ b/include/spawn.h
> @@ -103,6 +103,7 @@ int posix_spawnattr_init (posix_spawnattr_t *__attr)
>  static inline
>  int posix_spawnattr_destroy (posix_spawnattr_t *__attr)
>  {
> +  (void)__attr;
>    return 0;
>  }
>  
> -- 
> 2.47.1
> 
> _______________________________________________
> devel mailing list -- devel@uclibc-ng.org
> To unsubscribe send an email to devel-leave@uclibc-ng.org
>
diff mbox series

Patch

diff --git a/include/spawn.h b/include/spawn.h
index 3de375b41..cf01639c1 100644
--- a/include/spawn.h
+++ b/include/spawn.h
@@ -103,6 +103,7 @@  int posix_spawnattr_init (posix_spawnattr_t *__attr)
 static inline
 int posix_spawnattr_destroy (posix_spawnattr_t *__attr)
 {
+  (void)__attr;
   return 0;
 }