• A
    m4: Disable -Wdisabled-optimization · fbe315bd
    Andrea Bolognani 提交于
    After b4f7793c, qemuxml2xmltest has apparently become big enough
    to trigger a compilation error when using --enable-test-coverage on
    aarch64:
    
        CC       qemuxml2xmltest.o
      qemuxml2xmltest.c: In function 'mymain':
      qemuxml2xmltest.c:1216:1: error: const/copy propagation disabled: 4361 basic blocks and 99285 registers [-Werror=disabled-optimization]
       }
       ^
      qemuxml2xmltest.c:1216:1: error: PRE disabled: 4361 basic blocks and 99285 registers [-Werror=disabled-optimization]
      qemuxml2xmltest.c:1216:1: error: const/copy propagation disabled: 4361 basic blocks and 99285 registers [-Werror=disabled-optimization]
      qemuxml2xmltest.c:1216:1: error: const/copy propagation disabled: 4361 basic blocks and 99285 registers [-Werror=disabled-optimization]
    
    However, as the GCC documentation states, this warning is not really
    caused by issues in our code, so it makes sense to disable it.
    Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
    Reviewed-by: NDaniel P. Berrange <berrange@redhat.com>
    fbe315bd
virt-compile-warnings.m4 11.0 KB