소스 검색

spawn.h: fix compiler warning about unused variable

Avoid the warning by marking the unused parameter appropriately.

Signed-off-by: Marcus Haehnel <marcus.haehnel@kernkonzept.com>
Frank Mehnert 3 주 전
부모
커밋
3bd9deefb7
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      include/spawn.h

+ 1 - 0
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;
 }