]> git.deb.at Git - pkg/abook.git/commitdiff
Fix FTBFS with clang (Closes: #756536)
authorRhonda D'Vine <rhonda.dvine@nic.at>
Thu, 4 Nov 2021 10:18:00 +0000 (11:18 +0100)
committerRhonda D'Vine <rhonda.dvine@nic.at>
Thu, 4 Nov 2021 10:18:00 +0000 (11:18 +0100)
debian/changelog
debian/patches/clang-ftbfs.diff [new file with mode: 0644]
debian/patches/series

index a477bfd695b251bb52368799e4d5f0d51869bc5a..3e0692628c6f7b11c7a2fa67c69cbed82f014e3d 100644 (file)
@@ -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 <debian@denis-briand.fr>  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 (file)
index 0000000..262e99c
--- /dev/null
@@ -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)
index c8c0863f23d4a98448424c9af0895ec518f49dac..9d52638f083fb79086dc2c1315233a06d0edc16a 100644 (file)
@@ -1,2 +1,3 @@
 859407.diff
 fix_spelling_error_in_binary.diff
+clang-ftbfs.diff