1. 23 3月, 2020 1 次提交
  2. 16 3月, 2020 1 次提交
  3. 14 3月, 2020 1 次提交
  4. 11 3月, 2020 1 次提交
  5. 05 3月, 2020 2 次提交
    • P
      VIR_FREE: Replace internals by g_clear_pointer · 09352cca
      Peter Krempa 提交于
      Our implementation masks GCC warnings of uninitialized use of the passed
      argument. After changing this I got a load of following warnings:
      
      src/conf/virnetworkportdef.c: In function 'virNetworkPortDefSaveStatus':
      /usr/include/glib-2.0/glib/gmem.h:136:8: error: 'path' may be used uninitialized in this function [-Werror=maybe-uninitialized]
        136 |     if (_p)                \
            |        ^
      src/conf/virnetworkportdef.c:447:11: note: 'path' was declared here
        447 |     char *path;
            |           ^~~~
      
      For the curious, g_clear_pointer is still safe for arguments with
      side-effect. Here's the pre-processed output of trying to do a
      VIR_FREE(*(test2++)):
      
       do {
           typedef char _GStaticAssertCompileTimeAssertion_1[(sizeof *(&(*(test2++))) == sizeof (gpointer)) ? 1 : -1] __attribute__((__unused__));
           __typeof__((&(*(test2++)))) _pp = (&(*(test2++)));
           __typeof__(*(&(*(test2++)))) _ptr = *_pp;
      
           *_pp = ((void *)0);
           if (_ptr)
              (g_free) (_ptr);
       } while (0) ;
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      09352cca
    • D
      src: set the OS level thread name · c85256b3
      Daniel P. Berrangé 提交于
      Setting the thread name makes it easier to debug libvirtd
      when many threads are running.
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      c85256b3
  6. 04 3月, 2020 1 次提交
  7. 26 2月, 2020 2 次提交
  8. 25 2月, 2020 1 次提交
  9. 24 2月, 2020 3 次提交
  10. 23 2月, 2020 14 次提交
  11. 21 2月, 2020 2 次提交
  12. 18 2月, 2020 2 次提交
  13. 07 2月, 2020 2 次提交
  14. 04 2月, 2020 4 次提交
  15. 29 1月, 2020 3 次提交