diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2023-01-16 08:30:58 +0100 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2023-01-16 08:31:37 +0100 |
commit | 8b9ad99d5952087da5f262c4e20f236749b33f0d (patch) | |
tree | f16b707219fd15c104da68080c63bae02bbcb604 /dev-tcltk/snack | |
parent | sys-kernel/pf-sources: drop 6.0_p1, 6.0_p2, 6.0_p3, 6.0_p4, 6.0_p5 (diff) | |
download | gentoo-8b9ad99d5952087da5f262c4e20f236749b33f0d.tar.gz gentoo-8b9ad99d5952087da5f262c4e20f236749b33f0d.tar.bz2 gentoo-8b9ad99d5952087da5f262c4e20f236749b33f0d.zip |
dev-tcltk/snack: fix implicit warnings
Closes: https://bugs.gentoo.org/884413
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-tcltk/snack')
-rw-r--r-- | dev-tcltk/snack/files/snack-2.2.10-implicit.patch | 92 | ||||
-rw-r--r-- | dev-tcltk/snack/snack-2.2.10-r11.ebuild | 1 |
2 files changed, 93 insertions, 0 deletions
diff --git a/dev-tcltk/snack/files/snack-2.2.10-implicit.patch b/dev-tcltk/snack/files/snack-2.2.10-implicit.patch new file mode 100644 index 000000000000..965b1af0dbe2 --- /dev/null +++ b/dev-tcltk/snack/files/snack-2.2.10-implicit.patch @@ -0,0 +1,92 @@ +--- a/generic/sigproc2.c 2023-01-16 08:03:06.605091947 +0100 ++++ b/generic/sigproc2.c 2023-01-16 08:11:03.641089339 +0100 +@@ -465,9 +465,7 @@ + } + + /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ +-int get_window(dout, n, type) +- register double *dout; +- register int n; ++int get_window(register double *dout, register int n, int type) + { + static short *din = NULL; + static int n0 = 0; +@@ -506,9 +504,7 @@ + } + + /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ +-int get_float_window(fout, n, type) +- register float *fout; +- register int n; ++int get_float_window(register float *fout, register int n, int type) + { + static int n0 = 0; + static double *dout = NULL; +@@ -533,10 +529,7 @@ + } + + /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ +-int fwindow(din, dout, n, preemp, type) +- register short *din; +- register float *dout, preemp; +- register int n; ++int fwindow(register short *din, register float *dout, register int n, register float preemp, int type) + { + static float *fwind=NULL; + static int size=0, otype= (-100); +@@ -572,10 +565,7 @@ + + /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ + /* same as fwindow() but input is float */ +-int fwindow_f(din, dout, n, preemp, type) +- register float *din; +- register float *dout, preemp; +- register int n; ++int fwindow_f(register float *din, register float *dout, register int n, register float preemp, int type) + { + static float *fwind=NULL; + static int size=0, otype= (-100); +@@ -611,10 +601,7 @@ + + /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ + /* same as fwindow() but I/O is double */ +-int fwindow_d(din, dout, n, preemp, type) +- register double *din; +- register double *dout, preemp; +- register int n; ++int fwindow_d(register double *din, register double *dout, register int n, register double preemp, int type) + { + static float *fwind=NULL; + static int size=0, otype= (-100); +@@ -651,10 +638,7 @@ + + + /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ +-void w_window(din, dout, n, preemp, type) +- register short *din; +- register double *dout, preemp; +- register int n; ++void w_window(register short *din, register double *dout, register int n, register double preemp, int type) + { + switch(type) { + case 0: +--- a/generic/jkCanvSpeg.c 2023-01-16 08:25:51.880415841 +0100 ++++ b/generic/jkCanvSpeg.c 2023-01-16 08:26:43.667561725 +0100 +@@ -92,7 +92,7 @@ + Tk_Window tkwin, CONST84 char *value, char *recordPtr, + int offset); + +-static char *PrintColorMap(ClientData clientData, Tk_Window tkwin, ++static const char *PrintColorMap(ClientData clientData, Tk_Window tkwin, + char *recordPtr, int offset, + Tcl_FreeProc **freeProcPtr); + +@@ -1797,7 +1797,7 @@ + return TCL_OK; + } + +-static char* ++static const char* + PrintColorMap(ClientData clientData, Tk_Window tkwin, char *recordPtr, + int offset, Tcl_FreeProc **freeProcPtr) + { diff --git a/dev-tcltk/snack/snack-2.2.10-r11.ebuild b/dev-tcltk/snack/snack-2.2.10-r11.ebuild index ee85a588fdfc..6d62f7387c2b 100644 --- a/dev-tcltk/snack/snack-2.2.10-r11.ebuild +++ b/dev-tcltk/snack/snack-2.2.10-r11.ebuild @@ -44,6 +44,7 @@ PATCHES=( "${FILESDIR}"/tcl-${P}-python3.patch "${FILESDIR}"/${P}-lto.patch "${FILESDIR}"/${P}-configure-clang16.patch + "${FILESDIR}"/${P}-implicit.patch ) HTML_DOCS="${WORKDIR}/${PN}${PV}/doc/*" |