"Michael S. Tsirkin" <m...@redhat.com> writes: > /scm/qemu/exec.c:720:51: error: initialization from incompatible pointer type > [-Werror] > static void *(*phys_mem_alloc)(ram_addr_t size) = qemu_anon_ram_alloc; > ^ > /scm/qemu/exec.c: In function ‘qemu_ram_alloc_from_ptr’: > /scm/qemu/exec.c:1107:32: error: comparison of distinct pointer types lacks a > cast [-Werror] > if (phys_mem_alloc != qemu_anon_ram_alloc) { > ^ > /scm/qemu/exec.c: In function ‘qemu_ram_remap’: > /scm/qemu/exec.c:1251:38: error: comparison of distinct pointer types lacks a > cast [-Werror] > assert(phys_mem_alloc == qemu_anon_ram_alloc); > ^ > cc1: all warnings being treated as errors > make[1]: *** [exec.o] Error 1 [...]
Fix has been on list for a while: https://lists.nongnu.org/archive/html/qemu-devel/2013-09/msg04685.html