This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] debug/tst-longjmp_chk2: Make signal handler more conservative [BZ #20248]


On 13 Jun 2016 13:11, Florian Weimer wrote:
> +static void
> +write_message (const char *message)
> +{
> +  ssize_t unused __attribute__ ((unused));
> +  for (int i = 0; i < pass; ++i)
> +    unused = write (STDOUT_FILENO, " ", 1);
> +  unused = write (STDOUT_FILENO, message, strlen (message));

are you just trying to ignore the wur markings on write ?  you can use
this style instead:
	if (write (...))
	  {
	    /* ignored */
	  }

which i'm sure can be macroed.
-mike

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]