[Pkg-owncloud-commits] [owncloud-client] 13/14: make build with GCC-5

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed May 6 23:49:05 UTC 2015


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

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 1286556033a6b543f29c2e5266e2a52b28b4e959
Author: Sandro Knauß <bugs at sandroknauss.de>
Date:   Thu May 7 01:10:05 2015 +0200

    make build with GCC-5
    
    Closes: 778052
---
 debian/patches/0008-Built-with-GCC-5.patch | 56 ++++++++++++++++++++++++++++++
 debian/patches/series                      |  1 +
 2 files changed, 57 insertions(+)

diff --git a/debian/patches/0008-Built-with-GCC-5.patch b/debian/patches/0008-Built-with-GCC-5.patch
new file mode 100644
index 0000000..e5a22ef
--- /dev/null
+++ b/debian/patches/0008-Built-with-GCC-5.patch
@@ -0,0 +1,56 @@
+From: =?utf-8?q?Sandro_Knau=C3=9F?= <bugs at sandroknauss.de>
+Date: Thu, 7 May 2015 01:00:22 +0200
+Subject: Built with GCC-5
+
+this fixes the error:
+error: ISO C does not support '__FUNCTION__' predefined identifier
+[-Wpedantic]
+
+According to the porting guide:
+The fix is either to use the standard predefined identifier __func__
+(since C99), or to use the __extension__ keyword.
+---
+ csync/src/csync_log.h                     | 2 +-
+ csync/src/httpbf/src/httpbf.c             | 2 +-
+ csync/tests/csync_tests/check_csync_log.c | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/csync/src/csync_log.h b/csync/src/csync_log.h
+index 38f5f9c..0cd0d01 100644
+--- a/csync/src/csync_log.h
++++ b/csync/src/csync_log.h
+@@ -61,7 +61,7 @@ enum csync_log_priority_e {
+ };
+ 
+ #define CSYNC_LOG(priority, ...) \
+-  csync_log(priority, __FUNCTION__, __VA_ARGS__)
++  csync_log(priority, __func__, __VA_ARGS__)
+ 
+ void csync_log(int verbosity,
+                const char *function,
+diff --git a/csync/src/httpbf/src/httpbf.c b/csync/src/httpbf/src/httpbf.c
+index 815b07e..2489e8d 100644
+--- a/csync/src/httpbf/src/httpbf.c
++++ b/csync/src/httpbf/src/httpbf.c
+@@ -42,7 +42,7 @@
+ #define DEBUG_HBF(...) { if(transfer->log_cb) { \
+         char buf[1024];                         \
+         snprintf(buf, 1024, __VA_ARGS__);       \
+-        transfer->log_cb(__FUNCTION__, buf, transfer->user_data);    \
++        transfer->log_cb(__func__, buf, transfer->user_data);    \
+   }  }
+ 
+ // #endif
+diff --git a/csync/tests/csync_tests/check_csync_log.c b/csync/tests/csync_tests/check_csync_log.c
+index 4c88c14..65a8ae9 100644
+--- a/csync/tests/csync_tests/check_csync_log.c
++++ b/csync/tests/csync_tests/check_csync_log.c
+@@ -131,7 +131,7 @@ static void check_logging(void **state)
+     rc = csync_set_log_callback(check_log_callback);
+     assert_int_equal(rc, 0);
+ 
+-    csync_log(1, __FUNCTION__, "rc = %d", rc);
++    csync_log(1, __func__, "rc = %d", rc);
+ 
+     rc = _tstat(path, &sb);
+ 
diff --git a/debian/patches/series b/debian/patches/series
index d005e72..5180c11 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@
 0005-remove_admin.patch
 0006-move-configfile.patch
 0007-move-translations.patch
+0008-Built-with-GCC-5.patch

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



More information about the Pkg-owncloud-commits mailing list