Debian Codegraph @

debian/patches/implicit-function-declaration

raw
1 commit e4f0ed898dbfaffc287be7e695cd486ea2597f97
2 Author: Que Quotion <[email protected]>
3 Date: Fri Jan 5 19:34:24 2024 +0000
4
5 explicitly include stdlib.h, fixes #36
6
7 diff --git a/src/addhelper/addhelper.c b/src/addhelper/addhelper.c
8 index 3bc8a6b..29b0b6a 100644
9 --- a/src/addhelper/addhelper.c
10 +++ b/src/addhelper/addhelper.c
11 @@ -24,6 +24,7 @@
12 */
13
14 #include <compiz-core.h>
15 +#include <stdlib.h>
16 #include "addhelper_options.h"
17
18 #define GET_ADD_DISPLAY(d) \
19 diff --git a/src/bench/bench.c b/src/bench/bench.c
20 index 9cdef8c..ae64c58 100644
21 --- a/src/bench/bench.c
22 +++ b/src/bench/bench.c
23 @@ -21,6 +21,7 @@
24 **/
25
26 #include <compiz-core.h>
27 +#include <stdlib.h>
28
29 #include "bench_tex.h"
30 #include "bench_options.h"
31 diff --git a/src/firepaint/firepaint.c b/src/firepaint/firepaint.c
32 index b147b03..69a477c 100644
33 --- a/src/firepaint/firepaint.c
34 +++ b/src/firepaint/firepaint.c
35 @@ -20,6 +20,7 @@
36 */
37
38 #include <compiz-core.h>
39 +#include <stdlib.h>
40
41 #include "firepaint_options.h"
42 #include "firepaint_tex.h"
43 diff --git a/src/grid/grid.c b/src/grid/grid.c
44 index a8d5152..e4b5624 100644
45 --- a/src/grid/grid.c
46 +++ b/src/grid/grid.c
47 @@ -23,6 +23,7 @@
48 */
49
50 #include <compiz-core.h>
51 +#include <stdlib.h>
52 #include <string.h>
53 #include "grid_options.h"
54
55 diff --git a/src/highlightcontent/highlightcontent.c b/src/highlightcontent/highlightcontent.c
56 index 33bf932..5d66978 100644
57 --- a/src/highlightcontent/highlightcontent.c
58 +++ b/src/highlightcontent/highlightcontent.c
59 @@ -21,6 +21,7 @@
60 */
61
62 #include <math.h>
63 +#include <stdlib.h>
64 #include <string.h>
65
66 #include <compiz-core.h>
67 diff --git a/src/loginout/loginout.c b/src/loginout/loginout.c
68 index e2889d2..839f7b4 100644
69 --- a/src/loginout/loginout.c
70 +++ b/src/loginout/loginout.c
71 @@ -20,6 +20,7 @@
72 */
73
74 #include <compiz-core.h>
75 +#include <stdlib.h>
76
77 #include "loginout_options.h"
78
79 diff --git a/src/mblur/mblur.c b/src/mblur/mblur.c
80 index 103cd32..4e15c6d 100644
81 --- a/src/mblur/mblur.c
82 +++ b/src/mblur/mblur.c
83 @@ -20,6 +20,7 @@
84 */
85
86 #include <math.h>
87 +#include <stdlib.h>
88
89 #include <compiz-core.h>
90
91 diff --git a/src/reflex/reflex.c b/src/reflex/reflex.c
92 index 8c6ebc3..83a7d66 100644
93 --- a/src/reflex/reflex.c
94 +++ b/src/reflex/reflex.c
95 @@ -19,6 +19,7 @@
96 *
97 */
98 #include <compiz-core.h>
99 +#include <stdlib.h>
100
101 #include "reflex_options.h"
102
103 diff --git a/src/scalefilter/scalefilter.c b/src/scalefilter/scalefilter.c
104 index 55e2a96..c10c5d1 100644
105 --- a/src/scalefilter/scalefilter.c
106 +++ b/src/scalefilter/scalefilter.c
107 @@ -25,6 +25,7 @@
108
109 #define _GNU_SOURCE
110 #include <math.h>
111 +#include <stdlib.h>
112 #include <string.h>
113 #include <wchar.h>
114 #include <locale.h>
115 diff --git a/src/shelf/shelf.c b/src/shelf/shelf.c
116 index cd17839..e4fd09c 100644
117 --- a/src/shelf/shelf.c
118 +++ b/src/shelf/shelf.c
119 @@ -33,6 +33,7 @@
120 #include <X11/extensions/shape.h>
121 #include <X11/cursorfont.h>
122 #include <math.h>
123 +#include <stdlib.h>
124 #include <string.h>
125 #include "shelf_options.h"
126
127 diff --git a/src/showmouse/showmouse.c b/src/showmouse/showmouse.c
128 index fe972a2..32c3cb9 100644
129 --- a/src/showmouse/showmouse.c
130 +++ b/src/showmouse/showmouse.c
131 @@ -25,6 +25,7 @@
132 */
133
134 #include <math.h>
135 +#include <stdlib.h>
136 #include <string.h>
137
138 #include <compiz-core.h>
139 diff --git a/src/splash/splash.c b/src/splash/splash.c
140 index c72b9b0..986a3ec 100644
141 --- a/src/splash/splash.c
142 +++ b/src/splash/splash.c
143 @@ -20,6 +20,7 @@
144 */
145
146 #include <math.h>
147 +#include <stdlib.h>
148
149 #include <compiz-core.h>
150 #include <X11/Xatom.h>
151 diff --git a/src/trailfocus/trailfocus.c b/src/trailfocus/trailfocus.c
152 index ecfa84d..05c50f4 100644
153 --- a/src/trailfocus/trailfocus.c
154 +++ b/src/trailfocus/trailfocus.c
155 @@ -25,6 +25,7 @@
156 *
157 */
158
159 +#include <stdlib.h>
160 #include <string.h>
161 #include <compiz-core.h>
162 #include "trailfocus_options.h"
163 diff --git a/src/vidcap/vidcap.c b/src/vidcap/vidcap.c
164 index 10157b2..a08126d 100644
165 --- a/src/vidcap/vidcap.c
166 +++ b/src/vidcap/vidcap.c
167 @@ -27,6 +27,7 @@
168
169 #define _GNU_SOURCE /* For asprintf */
170 #include <stdio.h>
171 +#include <stdlib.h>
172 #include <string.h>
173 #include <sys/types.h>
174 #include <sys/stat.h>
175 diff --git a/src/wallpaper/wallpaper.c b/src/wallpaper/wallpaper.c
176 index fd23b69..2c47fa7 100644
177 --- a/src/wallpaper/wallpaper.c
178 +++ b/src/wallpaper/wallpaper.c
179 @@ -23,6 +23,7 @@
180 */
181
182 #include <stdarg.h>
183 +#include <stdlib.h>
184 #include <string.h>
185 #include <math.h>
186 #include <dirent.h>
187 diff --git a/src/widget/widget.c b/src/widget/widget.c
188 index ce7d4f0..6d146fa 100644
189 --- a/src/widget/widget.c
190 +++ b/src/widget/widget.c
191 @@ -26,6 +26,7 @@
192 *
193 */
194
195 +#include <stdlib.h>
196 #include <string.h>
197 #include <compiz-core.h>
198 #include <X11/Xatom.h>