[Spice-devel] [spice-gtk 0/3] fix various warnings reported by clang static analyzer

Christophe Fergeau cfergeau at gmail.com
Tue Mar 22 07:47:57 PDT 2011


I ran clang static analyzer on gtk-spice using
scan-build ./autogen.sh && scan-build make -e
and it reported some errors (unused variables and potential NULL dereferences).
This patch series fixes these warnings.


Christophe Fergeau (3):
  gtk: remove unused variables
  gtk: don't attempt to dereference NULL pointer
  gtk/display: be more paranoid about potentially NULL pointer

 gtk/channel-base.c            |    6 ++++--
 gtk/channel-record.c          |   10 ----------
 gtk/display/gnome-rr-config.c |    2 +-
 gtk/spice-channel.c           |    3 +--
 4 files changed, 6 insertions(+), 15 deletions(-)

-- 
1.7.4



More information about the Spice-devel mailing list