[planetblupi] 09/61: Fix warning of unused function

Didier Raboud odyx at moszumanska.debian.org
Thu Nov 2 19:24:50 UTC 2017


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

odyx pushed a commit to branch debian/master
in repository planetblupi.

commit a7018dbc5019be06fe10916deaeec9d700fce17d
Author: Mathieu Schroeter <mathieu at schroetersa.ch>
Date:   Fri Oct 20 17:42:42 2017 +0200

    Fix warning of unused function
---
 src/blupi.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/blupi.cxx b/src/blupi.cxx
index a2dd7e2..1bdf367 100644
--- a/src/blupi.cxx
+++ b/src/blupi.cxx
@@ -462,11 +462,11 @@ InitFail (const char * msg)
   FinishObjects ();
 }
 
+#ifdef USE_CURL
 static size_t
 updateCallback (void * ptr, size_t size, size_t nmemb, void * data)
 {
   size_t     realsize = size * nmemb;
-#ifdef USE_CURL
   url_data * mem      = static_cast<url_data *> (data);
 
   mem->buffer =
@@ -477,10 +477,10 @@ updateCallback (void * ptr, size_t size, size_t nmemb, void * data)
     mem->size += realsize;
     mem->buffer[mem->size] = 0;
   }
-#endif
 
   return realsize;
 }
+#endif /* USE_CURL */
 
 static void
 CheckForUpdates ()

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



More information about the Pkg-games-commits mailing list