Commit d4738c8
committed
CCBC-1596: Fix signatures in md5c-inl.h to use modern C style
In file included from src/vbucket/ketama.c:25:
src/vbucket/rfc1321/md5c-inl.h:100:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void MD5Init(context) MD5_CTX *context; /* context */
^
src/vbucket/ketama.c:21:17: note: expanded from macro 'MD5Init'
^
In file included from src/vbucket/ketama.c:25:
src/vbucket/rfc1321/md5c-inl.h:115:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void MD5Update(context, input, inputLen) MD5_CTX *context; /* context */
^
src/vbucket/ketama.c:22:19: note: expanded from macro 'MD5Update'
^
In file included from src/vbucket/ketama.c:25:
src/vbucket/rfc1321/md5c-inl.h:151:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void MD5Final(digest, context) unsigned char digest[16]; /* message digest */
^
src/vbucket/ketama.c:20:18: note: expanded from macro 'MD5Final'
^
In file included from src/vbucket/ketama.c:25:
src/vbucket/rfc1321/md5c-inl.h:179:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void MD5Transform(state, block) UINT4 state[4];
^
src/vbucket/rfc1321/md5c-inl.h:179:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
src/vbucket/rfc1321/md5c-inl.h:271:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void Encode(output, input, len) unsigned char *output;
^
src/vbucket/rfc1321/md5c-inl.h:271:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
src/vbucket/rfc1321/md5c-inl.h:288:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void Decode(output, input, len) UINT4 *output;
^
src/vbucket/rfc1321/md5c-inl.h:288:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
src/vbucket/rfc1321/md5c-inl.h:302:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void MD5_memcpy(output, input, len) POINTER output;
^
src/vbucket/rfc1321/md5c-inl.h:302:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
src/vbucket/rfc1321/md5c-inl.h:314:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void MD5_memset(output, value, len) POINTER output;
^
src/vbucket/rfc1321/md5c-inl.h:314:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
Change-Id: Ibb4acd90be56ea1573d959fa5398e7e24cb6ab14
Reviewed-on: https://review.couchbase.org/c/libcouchbase/+/190108
Reviewed-by: Brett Lawson <brett19@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>1 parent b9e5b8a commit d4738c8
1 file changed
Lines changed: 8 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 115 | + | |
118 | 116 | | |
119 | 117 | | |
120 | 118 | | |
| |||
148 | 146 | | |
149 | 147 | | |
150 | 148 | | |
151 | | - | |
152 | | - | |
| 149 | + | |
153 | 150 | | |
154 | 151 | | |
155 | 152 | | |
| |||
176 | 173 | | |
177 | 174 | | |
178 | 175 | | |
179 | | - | |
180 | | - | |
| 176 | + | |
181 | 177 | | |
182 | 178 | | |
183 | 179 | | |
| |||
268 | 264 | | |
269 | 265 | | |
270 | 266 | | |
271 | | - | |
272 | | - | |
273 | | - | |
| 267 | + | |
274 | 268 | | |
275 | 269 | | |
276 | 270 | | |
| |||
285 | 279 | | |
286 | 280 | | |
287 | 281 | | |
288 | | - | |
289 | | - | |
290 | | - | |
| 282 | + | |
291 | 283 | | |
292 | 284 | | |
293 | 285 | | |
| |||
299 | 291 | | |
300 | 292 | | |
301 | 293 | | |
302 | | - | |
303 | | - | |
304 | | - | |
| 294 | + | |
305 | 295 | | |
306 | 296 | | |
307 | 297 | | |
| |||
311 | 301 | | |
312 | 302 | | |
313 | 303 | | |
314 | | - | |
315 | | - | |
316 | | - | |
| 304 | + | |
317 | 305 | | |
318 | 306 | | |
319 | 307 | | |
| |||
0 commit comments