Permalink
Browse files

Add suppressions for pango, gail, and gdk

  • Loading branch information...
1 parent 557f97d commit 46734913199b3b0d7b464fa348e036db9d618dd1 @dtrebbien committed Feb 17, 2012
Showing with 136 additions and 7 deletions.
  1. +5 −1 .gitignore
  2. +19 −6 Makefile
  3. +26 −0 gail/gail-private.supp
  4. +26 −0 gdk/GdkDisplay.supp
  5. +33 −0 gdk/GdkDisplayManager.supp
  6. +27 −0 pango/pangocairo-private.supp
View
@@ -1,5 +1,9 @@
+all.supp
+gail.supp
+gdk.supp
gio.supp
glib.supp
+gtk.supp
gtk3.supp
gtksourceview.supp
-gtk.supp
+pango.supp
View
@@ -1,25 +1,38 @@
-gio_supp_FILES := $(wildcard gio/*.supp)
glib_supp_FILES := $(wildcard glib/*.supp)
+gio_supp_FILES := $(wildcard gio/*.supp)
+pango_supp_FILES := $(wildcard pango/*.supp)
+gail_supp_FILES := $(wildcard gail/*.supp)
+gdk_supp_FILES := $(wildcard gdk/*.supp)
gtk_supp_FILES := $(wildcard gtk+/*.supp)
-gtk3_supp_FILES := $(gtk_supp_FILES) $(wildcard gtk+/3.x/*.supp)
+gtk3_supp_FILES := $(wildcard gtk+/3.x/*.supp)
gtksourceview_supp_FILES := $(wildcard gtksourceview/*.supp)
-GENERATED_SUPP_FILES = gio.supp glib.supp gtk.supp gtk3.supp gtksourceview.supp
+GENERATED_SUPP_FILES_EXCEPT_ALL_SUPP = glib.supp gio.supp pango.supp gail.supp gdk.supp gtk.supp gtk3.supp gtksourceview.supp
+
+all_supp_FILES = glibc.supp fontconfig.supp $(GENERATED_SUPP_FILES_EXCEPT_ALL_SUPP)
.PHONY: all clean
-all: $(GENERATED_SUPP_FILES)
+all: $(GENERATED_SUPP_FILES_EXCEPT_ALL_SUPP) all.supp
clean:
- $(RM) $(GENERATED_SUPP_FILES)
+ $(RM) $(GENERATED_SUPP_FILES_EXCEPT_ALL_SUPP) all.supp
+glib.supp: $(glib_supp_FILES)
+ cat -- $^ | sed '/^#/d' | cat COPYING - >$@
gio.supp: $(gio_supp_FILES)
cat -- $^ | sed '/^#/d' | cat COPYING - >$@
-glib.supp: $(glib_supp_FILES)
+pango.supp: $(pango_supp_FILES)
+ cat -- $^ | sed '/^#/d' | cat COPYING - >$@
+gail.supp: $(gail_supp_FILES)
+ cat -- $^ | sed '/^#/d' | cat COPYING - >$@
+gdk.supp: $(gdk_supp_FILES)
cat -- $^ | sed '/^#/d' | cat COPYING - >$@
gtk.supp: $(gtk_supp_FILES)
cat -- $^ | sed '/^#/d' | cat COPYING - >$@
gtk3.supp: $(gtk3_supp_FILES)
cat -- $^ | sed '/^#/d' | cat COPYING - >$@
gtksourceview.supp: $(gtksourceview_supp_FILES)
cat -- $^ | sed '/^#/d' | cat COPYING - >$@
+all.supp: Makefile $(all_supp_FILES)
+ cat -- $(filter %.supp,$^) | sed '/^#/d' | cat COPYING - >$@
@@ -0,0 +1,26 @@
+# -*- tab-width: 3; indent-tabs-mode: nil -*-
+#
+# Copyright (C) 2012 Daniel Trebbien
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+# static `focus_tracker_id'
+{
+ _gtk_accessibility_init() in gail.c
+ Memcheck:Leak
+ ...
+ fun:atk_add_focus_tracker
+ fun:_gtk_accessibility_init
+}
View
@@ -0,0 +1,26 @@
+# -*- tab-width: 3; indent-tabs-mode: nil -*-
+#
+# Copyright (C) 2012 Daniel Trebbien
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+# http://developer.gnome.org/gdk/stable/GdkDisplay.html
+
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Leak
+ ...
+ fun:gdk_display_get_default
+}
@@ -0,0 +1,33 @@
+# -*- tab-width: 3; indent-tabs-mode: nil -*-
+#
+# Copyright (C) 2012 Daniel Trebbien
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+# http://developer.gnome.org/gdk/stable/GdkDisplayManager.html
+
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Leak
+ ...
+ fun:gdk_display_manager_get
+}
+
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Leak
+ ...
+ fun:gdk_display_manager_get_default_display
+}
@@ -0,0 +1,27 @@
+# -*- tab-width: 3; indent-tabs-mode: nil -*-
+#
+# Copyright (C) 2012 Daniel Trebbien
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+# Ignore leaks from obtaining the current FcConfig
+# See: http://freedesktop.org/software/fontconfig/fontconfig-devel/fcconfigsubstitute.html
+{
+ <insert_a_suppression_name_here>
+ Memcheck:Leak
+ ...
+ fun:FcConfigSubstitute*
+ fun:pango_cairo_fc_font_map_fontset_key_substitute
+}

0 comments on commit 4673491

Please sign in to comment.