From 4608c09338cbda50a6076ae82e1d20849656775e Mon Sep 17 00:00:00 2001 From: Rhonda D'Vine Date: Thu, 4 Nov 2021 11:18:00 +0100 Subject: [PATCH] Fix FTBFS with clang (Closes: #756536) --- debian/changelog | 5 +++++ debian/patches/clang-ftbfs.diff | 11 +++++++++++ debian/patches/series | 1 + 3 files changed, 17 insertions(+) create mode 100644 debian/patches/clang-ftbfs.diff diff --git a/debian/changelog b/debian/changelog index a477bfd..3e06926 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,11 @@ abook (0.6.1-2) unstable; urgency=low [ Bastian Germann ] * Complete debian/copyright (Closes: #995843, #979098) + [ Arthur Marble ] + * Fix FTBFS with clang (Closes: #756536) + - Fixed undefined reference error + changed inline int field_id to int field_id + -- Denis Briand Sat, 05 Aug 2017 01:49:29 +0200 abook (0.6.1-1) unstable; urgency=medium diff --git a/debian/patches/clang-ftbfs.diff b/debian/patches/clang-ftbfs.diff new file mode 100644 index 0000000..262e99c --- /dev/null +++ b/debian/patches/clang-ftbfs.diff @@ -0,0 +1,11 @@ +--- a/database.h ++++ b/database.h +@@ -60,7 +60,7 @@ struct db_enumerator { + /* + * Field operations + */ +-inline int field_id(int i); ++static inline int field_id(int i); + abook_field *find_standard_field(char *key, int do_declare); + abook_field *real_find_field(char *key, abook_field_list *list, int *nb); + #define find_field(key, list) real_find_field(key, list, NULL) diff --git a/debian/patches/series b/debian/patches/series index c8c0863..9d52638 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ 859407.diff fix_spelling_error_in_binary.diff +clang-ftbfs.diff -- 2.39.5