[PATCH 6/8] nptl_db/thread_dbP.h: fix warn unused result
Siddhesh Poyarekar
siddhesh@gotplt.org
Tue Apr 18 12:49:18 GMT 2023
On 2023-04-18 08:11, Frédéric Bérat via Libc-alpha wrote:
> Fix unused result warnings, detected when _FORTIFY_SOURCE is enabled in
> glibc.
> ---
> nptl_db/thread_dbP.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
LGTM.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
>
> diff --git a/nptl_db/thread_dbP.h b/nptl_db/thread_dbP.h
> index 8845722109..ad0c197f6f 100644
> --- a/nptl_db/thread_dbP.h
> +++ b/nptl_db/thread_dbP.h
> @@ -61,7 +61,7 @@ enum
>
> /* Comment out the following for less verbose output. */
> #ifndef NDEBUG
> -# define LOG(c) if (__td_debug) write (2, c "\n", strlen (c "\n"))
> +# define LOG(c) if (__td_debug) assert(write (2, c "\n", strlen (c "\n")) == strlen (c "\n"))
> extern int __td_debug attribute_hidden;
> #else
> # define LOG(c)
More information about the Libc-alpha
mailing list