]> Git Repo - qemu.git/commit - Makefile.target
Use -isystem for linux-headers dir
authorEduardo Habkost <[email protected]>
Wed, 11 Mar 2020 23:23:41 +0000 (19:23 -0400)
committerPaolo Bonzini <[email protected]>
Mon, 16 Mar 2020 22:02:26 +0000 (23:02 +0100)
commit67cf3f5cf590549b1b8f8e2eb92ca20ed80d8a0a
tree6e6cdda27f31f40c6ca171fa29478eb3fd36c794
parent3df261b6676b5850e93d6fab3f7a98f8ee8f19c5
Use -isystem for linux-headers dir

glibc and Linux-provided headers are known to generate macro
redefinition warnings when used together.  For example:
<linux/mman.h> and <sys/mman.h> duplicate some macro definitions.

We normally never see those warnings because GCC suppresses
warnings generated by system headers.  We carry our own copy of
Linux header files, though, and this makes those warnings not be
suppressed when glibc headers are included before Linux headers
(e.g. if <sys/mman.h> is included before <linux/mman.h>).

Use -isystem instead of -I for linux-headers.  This makes the
compiler treat our linux-headers directory the same way it treats
system-provided Linux headers, and suppress warnings generated by
them.

Signed-off-by: Eduardo Habkost <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Makefile.target
configure
This page took 0.026211 seconds and 4 git commands to generate.