mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
libs/libc/spawn: Add minimal implementation for posix_spawnattr_destory.
Add a minimal implementation to suppress warnings when building application code shared with other operating systems. For example: When building with a c++ compiler and GCC 12.2.0, the following warning is emitted: nuttx/include/spawn.h:178:40: warning: statement has no effect [-Wunused-value] 178 | #define posix_spawnattr_destroy(attr) (0)
This commit is contained in:
+1
-2
@@ -174,8 +174,7 @@ int posix_spawn_file_actions_addopen(
|
||||
|
||||
int posix_spawnattr_init(FAR posix_spawnattr_t *attr);
|
||||
|
||||
/* int posix_spawnattr_destroy(FAR posix_spawnattr_t *); */
|
||||
#define posix_spawnattr_destroy(attr) (0)
|
||||
int posix_spawnattr_destroy(FAR posix_spawnattr_t *attr);
|
||||
|
||||
/* Get spawn attributes interfaces */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user