qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 0100f4: libqtest: Avoid inline varargs functi


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 0100f4: libqtest: Avoid inline varargs functions
Date: Thu, 13 Mar 2014 06:00:04 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 0100f42550201f346cc0c20c1864f941509eb592
      
https://github.com/qemu/qemu/commit/0100f42550201f346cc0c20c1864f941509eb592
  Author: Peter Maydell <address@hidden>
  Date:   2014-03-13 (Thu, 13 Mar 2014)

  Changed paths:
    M tests/libqtest.c
    M tests/libqtest.h

  Log Message:
  -----------
  libqtest: Avoid inline varargs functions

Older versions of gcc (eg 4.6) can't handle varargs functions declared
inline for anything other than completely trivial uses, and complain:

tests/qom-test.c: In function 'qmp': tests/libqtest.h:359:60: sorry,
unimplemented: function 'qmp' can never be inlined because it uses
variable argument lists

Avoid this problem by putting the functions into libqtest.c instead
of using inline definitions in libqtest.h.

Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Andreas Färber <address@hidden>



reply via email to

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