Re: [PATCH 2/2] Revert "Prevent more compiler optimization of mockable functions"

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

 



On Wed, Jul 12, 2017 at 05:07:56PM +0100, Daniel P. Berrange wrote:
On Wed, Jul 12, 2017 at 01:56:47PM +0200, Martin Kletzander wrote:
Also, having the weak alias we can drop all the mocks and the problems
with them and just redefine the functions we would like to mock in the
tests (see tests/virfilewrapper.c), it would work on win32, it would
not compile if we would forgot to make the function as an alias (so no
need to check that in the syntax-check) and maybe provide other benefits
that I can't think of right now.

Empirically I'm not seeing any compiler warnings if i take this approach
and don't mark the function as an alias.


Oooh, me too :(  That's a pity; yet another thing that proves I still
don't _fully_ understand the details behind everything.

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux