summarylogtreecommitdiffstats
path: root/warnings.patch
blob: 5181408fe4d11759a11611574e989fd59fbb02cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
Author: Sergei Golovan
Description: Patch fixes a few missing function and variable declarations.
Last-Modified: Thu, 19 Nov 2015 21:44:33 +0300

--- a/generic/SnackMpg.c
+++ b/generic/SnackMpg.c
@@ -23,6 +23,8 @@
 #include <stdlib.h>
 #include <time.h>
 #include "mpg123.h"
+#include <string.h>
+#include <ctype.h>
 
 #if defined(__WIN32__)
 #  include <io.h>
@@ -129,7 +131,7 @@
 {
     long rate;
     int channels, enc;
-    int fnd = 0, ret, done;
+    int fnd = 0, ret; size_t done;
     mpg123_handle *m;
     unsigned char *ubuf = buf;
     unsigned char pcmout[4*sizeof(short)*20000];
@@ -195,7 +197,7 @@
     Mpg123_File *of;
     int ret, fd, rc;
     long mlen;
-    Tcl_ChannelType *cType;
+    const Tcl_ChannelType *cType;
 
     of = MpgObj(s);
     of->isFile = 0;
@@ -334,7 +336,7 @@
                 mpg123_seek(of->m, of->savepos[of->ref], SEEK_SET);
             }
         }
-        return;
+        return TCL_OK;
     }
 
     FreeRes(of);
--- a/generic/sigproc2.c
+++ b/generic/sigproc2.c
@@ -468,6 +468,7 @@
 int get_window(dout, n, type)
      register double *dout;
      register int n;
+     register int type;
 {
   static short *din = NULL;
   static int n0 = 0;
@@ -509,6 +510,7 @@
 int get_float_window(fout, n, type)
      register float *fout;
      register int n;
+     register int type;
 {
   static int n0 = 0;
   static double *dout = NULL;
@@ -537,6 +539,7 @@
      register short *din;
      register float *dout, preemp;
      register int n;
+     register int type;
 {
   static float *fwind=NULL;
   static int size=0, otype= (-100);
@@ -576,6 +579,7 @@
      register float *din;
      register float *dout, preemp;
      register int n;
+     register int type;
 {
   static float *fwind=NULL;
   static int size=0, otype= (-100);
@@ -615,6 +619,7 @@
      register double *din;
      register double *dout, preemp;
      register int n;
+     register int type;
 {
   static float *fwind=NULL;
   static int size=0, otype= (-100);
@@ -655,6 +660,7 @@
      register short *din;
      register double *dout, preemp;
      register int n;
+     register int type;
 {
   switch(type) {
   case 0:
--- a/generic/jkCanvSpeg.c
+++ b/generic/jkCanvSpeg.c
@@ -92,7 +92,7 @@
 			 Tk_Window tkwin, CONST84 char *value, char *recordPtr,
 			 int offset);
 
-static char *PrintColorMap(ClientData clientData, Tk_Window tkwin,
+static CONST86 char *PrintColorMap(ClientData clientData, Tk_Window tkwin,
 			   char *recordPtr, int offset,
 			   Tcl_FreeProc **freeProcPtr);
 
@@ -399,7 +399,7 @@
   }
   
   if (argc == 1) {
-      if (Tcl_SplitList(interp, argv[0], &argc, &argv) != TCL_OK) {
+      if (Tcl_SplitList(interp, argv[0], &argc, (CONST84 char ***) &argv) != TCL_OK) {
 	  return TCL_ERROR;
       }
   }
@@ -1821,7 +1821,7 @@
   return TCL_OK;
 }
 
-static char*
+static CONST86 char*
 PrintColorMap(ClientData clientData, Tk_Window tkwin, char *recordPtr,
 	      int offset, Tcl_FreeProc **freeProcPtr)
 {
--- a/generic/jkCanvSect.c
+++ b/generic/jkCanvSect.c
@@ -360,7 +360,7 @@
   }
   
   if (argc == 1) {
-      if (Tcl_SplitList(interp, argv[0], &argc, &argv) != TCL_OK) {
+      if (Tcl_SplitList(interp, argv[0], &argc, (CONST84 char ***) &argv) != TCL_OK) {
 	  return TCL_ERROR;
       }
   }
--- a/generic/jkCanvWave.c
+++ b/generic/jkCanvWave.c
@@ -412,7 +412,7 @@
   }
   
   if (argc == 1) {
-      if (Tcl_SplitList(interp, argv[0], &argc, &argv) != TCL_OK) {
+      if (Tcl_SplitList(interp, argv[0], &argc, (CONST84 char ***) &argv) != TCL_OK) {
 	  return TCL_ERROR;
       }
   }