From 4182ee857e214c38f5d2dae8403c8663ee56e028 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Feb 07 2006 11:15:16 +0000 Subject: apply patch to fix gcc warning (#169189) --- diff --git a/kdegraphics-3.5.1-warning.patch b/kdegraphics-3.5.1-warning.patch new file mode 100644 index 0000000..0bb0727 --- /dev/null +++ b/kdegraphics-3.5.1-warning.patch @@ -0,0 +1,12 @@ +--- kdegraphics-3.5.1/kolourpaint/cursors/kpcursorlightcross.cpp.orig 2006-02-07 12:10:45.000000000 +0100 ++++ kdegraphics-3.5.1/kolourpaint/cursors/kpcursorlightcross.cpp 2006-02-07 12:10:52.000000000 +0100 +@@ -52,7 +52,8 @@ + const int MaskOpaque = 1; + const int MaskTransparent = 0; + +- int colorValue, maskValue; ++ int colorValue = ColorWhite; ++ int maskValue = MaskTransparent; + + switch (pv) + { diff --git a/kdegraphics.spec b/kdegraphics.spec index 656667d..82ac4c0 100644 --- a/kdegraphics.spec +++ b/kdegraphics.spec @@ -29,6 +29,7 @@ Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.b Patch0: kde-libtool.patch Patch1: kdegraphics-3.3.0-misc.patch Patch2: kdegraphics-3.3.1-xorg.patch +Patch3: kdegraphics-3.5.1-warning.patch # upstream patches Patch50: kdegraphics-3.5.1-kpdf.patch @@ -269,6 +270,7 @@ This package contains a model editor for the PovRay raytracer. %patch0 -p1 -b .libtool %patch1 -p1 -b .misc %patch2 -p1 -b .xorg +%patch3 -p1 -b .gcc-warning # upstream patches %patch50 -p1 -b .kpdf @@ -375,6 +377,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Tue Feb 07 2006 Than Ngo 7:3.5.1-2 - apply patch to fix buffer overflow in kpdf, CVE-2006-0301 (#179425) +- apply patch to fix gcc warning (#169189) * Sat Feb 04 2006 Than Ngo 7:3.5.1-1 - 3.5.1