Fix compiling warnings and errors on Linux. by coxuintel · Pull Request #223 · intel/haxm (original) (raw)

Below warnings and errors are fixed:
-Wmaybe-uninitialized in gpa_space_write_data().
-Wmultistatement-macros of macro VMREAD_SEG.
-Wparentheses of macro WRITE_CONTROLS.
-Wdeclaration-after-statement in handle_cpuid_virtual();
-Wunused-label in exit_ept_violation().
Conflict X86_FEATURE_x definition in cpuid.h and cpufeatures.h.

Signed-off-by: Colin Xu colin.xu@intel.com