7744ac Fix -Dwerror=false

Authored and Committed by rjones@redhat.com 3 years ago
1 file changed. 1 lines added. 1 lines removed.
    Fix -Dwerror=false
    
    Libvirt builds were failing because of:
    
    ../src/util/virconf.c: In function ‘virConfGetValueStringList’:
    ../src/util/virconf.c:950:13: error: Not available before 2.60 [-Werror]
      950 |         G_GNUC_FALLTHROUGH;
          |             ^~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors
    
    -Werror was being passed to GCC.
    
    meson -Dwerror=false was being used which is supposed to disable
    -Werror, but did not do so.
    
    Apparently because of git being used to manage patches, libvirt thinks
    it is being built from git so we need to use:
    
     -Dwerror=false -Dgit_werror=disabled
    
    to really kill off -Werror.
    
        
file modified
+1 -1