[med-svn] [Git][med-team/volpack][master] Fix FTBFS with -Werror=implicit-function-declaration

Étienne Mollier (@emollier) gitlab at salsa.debian.org
Sun Mar 17 17:37:19 GMT 2024



Étienne Mollier pushed to branch master at Debian Med / volpack


Commits:
d85b54d6 by Andrey Rakhmatullin at 2024-03-17T18:36:12+01:00
Fix FTBFS with -Werror=implicit-function-declaration

Closes: #1066485
Signed-off-by: Étienne Mollier <emollier at debian.org>

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/fix-implicit-function-declaration.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+volpack (1.0b3-9.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS with -Werror=implicit-function-declaration (Closes: #1066485).
+
+ -- Andrey Rakhmatullin <wrar at debian.org>  Sun, 17 Mar 2024 21:32:58 +0500
+
 volpack (1.0b3-9) unstable; urgency=medium
 
   * Test-Depends: build-essential


=====================================
debian/patches/fix-implicit-function-declaration.patch
=====================================
@@ -0,0 +1,104 @@
+Description: Add missing header includes and prototypes.
+Author: Andrey Rakhmatullin <wrar at debian.org>
+Bug-Debian: https://bugs.debian.org/1066485
+Last-Update: 2024-03-17
+
+Index: volpack-1.0b3/examples/scalevolume.c
+===================================================================
+--- volpack-1.0b3.orig/examples/scalevolume.c
++++ volpack-1.0b3/examples/scalevolume.c
+@@ -38,6 +38,10 @@
+ #include <stdio.h>
+ #include <volpack.h>
+ #include <malloc.h>
++#include <stdlib.h>
++#include <string.h>
++
++int write_den(char* filename, unsigned char* data, int xlen, int ylen, int zlen);
+ 
+ main(argc, argv)
+ int argc;
+Index: volpack-1.0b3/examples/rendervolume.c
+===================================================================
+--- volpack-1.0b3.orig/examples/rendervolume.c
++++ volpack-1.0b3/examples/rendervolume.c
+@@ -29,8 +29,13 @@
+  */
+ 
+ #include <stdlib.h>
++#include <string.h>
++#include <fcntl.h>
++#include <unistd.h>
+ #include "volume.h"
+ 
++int StorePGM(char* image, int width, int height, char* filename);
++
+ main(argc, argv)
+ int argc;
+ char **argv;
+Index: volpack-1.0b3/examples/denfile.c
+===================================================================
+--- volpack-1.0b3.orig/examples/denfile.c
++++ volpack-1.0b3/examples/denfile.c
+@@ -6,6 +6,9 @@
+  */
+ 
+ #include <stdio.h>
++#include <fcntl.h>
++#include <stdlib.h>
++#include <unistd.h>
+ 
+ #ifndef MIN
+ #define MIN(a, b) ((a) > (b) ? (b) : (a))
+@@ -17,6 +20,11 @@
+ 
+ #define MAX_READ_SIZE	8192	/* maximum # of bytes per read(2) call */
+ 
++int read_shorts(int fd, short* sbuf, int shortcount, int swap);
++int read_words(int fd, int* wbuf, int wordcount, int swap);
++int read_bytes(int fd, char* buf, int bytecount);
++int write_bytes(int fd, char* buf, int bytecount);
++
+ /*
+  * read_den
+  *
+Index: volpack-1.0b3/examples/classifyvolume.c
+===================================================================
+--- volpack-1.0b3.orig/examples/classifyvolume.c
++++ volpack-1.0b3/examples/classifyvolume.c
+@@ -29,6 +29,9 @@
+  */
+ 
+ #include <stdlib.h>
++#include <unistd.h>
++#include <string.h>
++#include <fcntl.h>
+ #include "volume.h"
+ 
+ main(argc, argv)
+Index: volpack-1.0b3/examples/makeoctree.c
+===================================================================
+--- volpack-1.0b3.orig/examples/makeoctree.c
++++ volpack-1.0b3/examples/makeoctree.c
+@@ -29,6 +29,8 @@
+  */
+ 
+ #include <stdlib.h>
++#include <fcntl.h>
++#include <unistd.h>
+ #include "volume.h"
+ 
+ main()
+Index: volpack-1.0b3/examples/makevolume.c
+===================================================================
+--- volpack-1.0b3.orig/examples/makevolume.c
++++ volpack-1.0b3/examples/makevolume.c
+@@ -29,6 +29,8 @@
+  */
+ 
+ #include <stdlib.h>
++#include <fcntl.h>
++#include <unistd.h>
+ #include "volume.h"
+ 
+ main()


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 10_examples.patch
 10_vp_global_h.patch
 fixmanpages.patch
+fix-implicit-function-declaration.patch



View it on GitLab: https://salsa.debian.org/med-team/volpack/-/commit/d85b54d6fb0c06207759da3510e70c218b8c7fa8

-- 
View it on GitLab: https://salsa.debian.org/med-team/volpack/-/commit/d85b54d6fb0c06207759da3510e70c218b8c7fa8
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240317/b71f7f7f/attachment-0001.htm>


More information about the debian-med-commit mailing list