bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to cross build for Windows


From: Torbjorn SVENSSON
Subject: Re: Unable to cross build for Windows
Date: Fri, 9 Jun 2023 16:18:05 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0



On 2023-06-09 14:44, Paul Smith wrote:
On Fri, 2023-06-09 at 14:16 +0200, Torbjorn SVENSSON wrote:
The only thing left, that I don't know how to handle, is the use of
O() where the 3rd parameter is not a string literal.

src/job.c: In function 'create_batch_file':
src/job.c:365:3: error: format not a string literal and no format
arguments [-Werror=format-security]
     O (fatal, NILF, error_string);
     ^

is it okay to change this to: fatal (NILF, 0, error_string);
or is there a better way to get around this warning?

I don't see how that change would get around this warning.  The result
after preprocessing is the same.  Did you try this and see the warning
go away?  That would be extremely odd.

To get rid of this warning you have to use this:

   OS (fatal, NILF, "%s", error_string);



Right, I missed to type that in my call to fatal, sorry for that.
I've sent a patch series that addresses the errors that was blocking me
from building in maintainer mode.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]