Skip to content

make error #2

@dahaosoft

Description

@dahaosoft

~/test/qom/qemu-object-model$ make -B
gcc -c base.c -o base.o
gcc -c main.c -o main.o
gcc -c ./qom/gtestutil.c -o gtestutil.o
gcc -c ./qom/object.c -o object.o
gcc -c ./qom/ghash.c -o ghash.o
In file included from ./qom/ghash.h:27,
from ./qom/ghash.c:31:
./qom/ghash.c: In function ‘g_direct_hash’:
./qom/gtypes.h:49:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
49 | #define GPOINTER_TO_UINT(p) ((guint) (p))
| ^
./qom/ghash.c:1799:10: note: in expansion of macro ‘GPOINTER_TO_UINT’
1799 | return GPOINTER_TO_UINT (v);
| ^~~~~~~~~~~~~~~~
gcc -c ./qom/gslist.c -o gslist.o
gcc -c ./qom/error.c -o error.o
gcc -c ./qom/gstrfuncs.c -o gstrfuncs.o
In file included from ./qom/gstrfuncs.c:4:
./qom/gstrfuncs.c: In function ‘g_strdup_vprintf’:
./qom/gstrfuncs.h:47:42: error: assignment to expression with array type
47 | # define G_VA_COPY(ap1, ap2) ((ap1) = (ap2))
| ^
./qom/gstrfuncs.c:65:3: note: in expansion of macro ‘G_VA_COPY’
65 | G_VA_COPY (args2, args1);
| ^~~~~~~~~
makefile:13: recipe for target 'gstrfuncs.o' failed
make: *** [gstrfuncs.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions