tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Annoying new warning


From: grischka
Subject: Re: [Tinycc-devel] Annoying new warning
Date: Fri, 05 May 2017 13:02:05 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Vincent Lefevre wrote:
On 2017-05-05 17:29:22 +1000, William Hales wrote:
This is his message, copied and pasted:

Hi Vincent,

return 666; works equally well as it should not be called by ARM backend.

This is a workaround to remove warning.

But this can hide bugs, e.g. if in the future this function is called
by the ARM backend. It would be better either not to define this
function at all (best solution at it doesn't make sense on the ARM,
and issues would be detected at compile time) or have something like
an assert to abort if this function is called.

Let tcc insert a library function that will abort peoples' programs
to me clearly sounds like a second to best solution. ;)

--- grischka




reply via email to

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