[Spice-devel] [PATCH spice-server 1/2] Change ENABLE_EXTRA_CHECKS statements to #ifdef

Christophe Fergeau cfergeau at redhat.com
Thu Mar 15 17:20:30 UTC 2018


On Tue, Mar 13, 2018 at 10:37:46AM -0300, Eduardo Lima (Etrunko) wrote:
> On 13/03/18 04:21, Frediano Ziglio wrote:
> >>
> >> This patch makes it clear that this is a configure switch and not a
> >> variable defined somewhere else in the code.
> >>
> > 
> > The code is intended that way to make the compiler always parse
> > these parts. Note that that define is always defined so your code
> > is not doing what you are intending.
> 
> I have sent this patch by mistake, but anyway, the fact of it always
> being defined is true with autotools, but it is not with meson.
> 
> Do you think it would make sense to have this patch or is it better to
> keep as is? If the latter, I think it would be better to keep a static
> variable and change its value according to the define.

For what it's worth, I tried doing something like what you suggest in
the past
https://lists.freedesktop.org/archives/spice-devel/2017-September/039963.html
but I came to the conclusion that this was not going to work nicely
https://lists.freedesktop.org/archives/spice-devel/2017-September/039983.html
I don't fully recall what the problem(s) were though :(

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180315/5ad03557/attachment.sig>


More information about the Spice-devel mailing list