From 05949ff79c5f83c4562e224309c0a6ef1d2f731f Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 27 Aug 2018 06:00:33 -0600 Subject: [PATCH] include/spawn.h: Fix posix_spawnattr_destroy warning: 'the address of attr will always evaluate as true' --- include/spawn.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/spawn.h b/include/spawn.h index f2d49f04107..5ffbd031998 100644 --- a/include/spawn.h +++ b/include/spawn.h @@ -186,11 +186,7 @@ int posix_spawn_file_actions_addopen(FAR posix_spawn_file_actions_t *file_action int posix_spawnattr_init(FAR posix_spawnattr_t *attr); /* int posix_spawnattr_destroy(FAR posix_spawnattr_t *); */ -#ifdef CONFIG_DEBUG_FEATURES -# define posix_spawnattr_destroy(attr) (attr ? 0 : EINVAL) -#else -# define posix_spawnattr_destroy(attr) (0) -#endif +#define posix_spawnattr_destroy(attr) (0) /* Get spawn attributes interfaces */