[mupen64plus-video-z64] 95/161: Workaround wrong gcc warning about uninitialized variable

Sven Eckelmann ecsv-guest at moszumanska.debian.org
Thu Nov 26 06:20:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

ecsv-guest pushed a commit to branch master
in repository mupen64plus-video-z64.

commit cd905a252c18d8ef3bb04173964981834c3b1d14
Author: Sven Eckelmann <sven at narfation.org>
Date:   Fri Jun 8 22:51:24 2012 +0200

    Workaround wrong gcc warning about uninitialized variable
---
 debian/changelog                               |  2 ++
 debian/patches/series                          |  1 +
 debian/patches/uninitialized_restorefbid.patch | 17 +++++++++++++++++
 3 files changed, 20 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 838e013..5b9b90b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ mupen64plus-video-z64 (1.99.4+30+daa3f1b2fe76-3) UNRELEASED; urgency=low
 
   * debian/patches:
     - Add gcc_lto.patch, Enable support for link-time optimization
+    - Add uninitialized_restorefbid.patch, Workaround wrong gcc warning about
+      uninitialized variable
 
  -- Sven Eckelmann <sven at narfation.org>  Sat, 09 Jun 2012 01:36:50 +0200
 
diff --git a/debian/patches/series b/debian/patches/series
index 84a4bb7..8fee66f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 printf_fixup.patch
 gcc_lto.patch
+uninitialized_restorefbid.patch
diff --git a/debian/patches/uninitialized_restorefbid.patch b/debian/patches/uninitialized_restorefbid.patch
new file mode 100644
index 0000000..de47ff1
--- /dev/null
+++ b/debian/patches/uninitialized_restorefbid.patch
@@ -0,0 +1,17 @@
+Description: Workaround wrong gcc warning about uninitialized variable
+Author: Sven Eckelmann <sven at narfation.org>
+
+---
+diff --git a/src/rgl.cpp b/src/rgl.cpp
+index 275bba1c2fe8d0e9412d9ab3b7bc19ddc81f277f..c074457467879a58c7e59613a2a79c9cff0eef55 100644
+--- a/src/rgl.cpp
++++ b/src/rgl.cpp
+@@ -369,7 +369,7 @@ void rglPrepareFramebuffer(rglRenderBuffer_t & buffer)
+     if (buffer.area.xh == 8192)
+         return;
+ 
+-    GLuint restoreId = 0, restoreFbid;
++    GLuint restoreId = 0, restoreFbid = 0;
+     float d2 = -1;
+     float d = 0;
+     float restoreW = buffer.width+d2, restoreH = buffer.height+d2;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-video-z64.git



More information about the Pkg-games-commits mailing list