1. 03 3月, 2016 4 次提交
    • M
      Drop inline keyword from some functions. · be8b536a
      Michal Privoznik 提交于
      While trying to build with -Os I've encountered some build
      failures.
      
      util/vircommand.c: In function 'virCommandAddEnvFormat':
      util/vircommand.c:1257:1: error: inlining failed in call to 'virCommandAddEnv': call is unlikely and code size would grow [-Werror=inline]
       virCommandAddEnv(virCommandPtr cmd, char *env)
       ^
      util/vircommand.c:1308:5: error: called from here [-Werror=inline]
           virCommandAddEnv(cmd, env);
           ^
      This function is big enough for the compiler to be not inlined.
      This is the error message I'm seeing:
      
      Then virDomainNumatuneNodeSpecified is exported and called from
      other places. It shouldn't be inlined then.
      
      In file included from network/bridge_driver_platform.h:30:0,
                       from network/bridge_driver_platform.c:26:
      network/bridge_driver_linux.c: In function 'networkRemoveRoutingFirewallRules':
      ./conf/network_conf.h:350:1: error: inlining failed in call to 'virNetworkDefForwardIf.constprop': call is unlikely and code size would grow [-Werror=inline]
       virNetworkDefForwardIf(const virNetworkDef *def, size_t n)
       ^
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      be8b536a
    • J
      qemu: Check if domain is active in GetControlInfo · e53f2dc8
      Jiri Denemark 提交于
      Reporting status of a control connection makes no sense for an inactive
      domain.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1281706Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      e53f2dc8
    • J
      Use correct LDFLAGS for leaseshelper · 1a0f076d
      Jiri Denemark 提交于
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      1a0f076d
    • J
      util: Cleanup error path for virPolkitAgentCreate · 0b36b0e9
      John Ferlan 提交于
      More fallout from changing to using virPolkitAgent and handling error
      paths.  Needed to clear the 'cmd' once stored and of course add the
      virCommandFree(cmd) in the error: label.
      0b36b0e9
  2. 02 3月, 2016 2 次提交
    • M
      datatypes.c: Replace 'close' with 'closeData' · f5f1ccbc
      Michal Privoznik 提交于
      Older compilers fail to see that 'close' is not used a function
      rather than a variable and produce the following error:
      
      cc1: warnings being treated as errors
      ../../src/datatypes.c: In function 'virConnectCloseCallbackDataReset':
      ../../src/datatypes.c:149: error: declaration of 'close' shadows a global declaration [-Wshadow]
      
      Replace all the 'close' occurrences with 'closeData' to resolve
      this.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      f5f1ccbc
    • J
      util: Fix missing initializer for agent · 95aa1017
      John Ferlan 提交于
      In virPolkitAgentCreate neglected to initialize agent to NULL. If
      there was an error in the pipe, then we jump to error and would have
      an issue. Found by coverity.
      95aa1017
  3. 01 3月, 2016 34 次提交