Skip to content

Commit 69928a2

Browse files
committed
sprinkle unused
1 parent 208d416 commit 69928a2

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/cdf.c

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "file.h"
3636

3737
#ifndef lint
38-
FILE_RCSID("@(#)$File: cdf.c,v 1.103 2017/04/24 18:57:35 christos Exp $")
38+
FILE_RCSID("@(#)$File: cdf.c,v 1.104 2017/04/26 15:08:07 christos Exp $")
3939
#endif
4040

4141
#include <assert.h>
@@ -86,19 +86,25 @@ static union {
8686

8787

8888
static void *
89-
cdf_malloc(const char *file, size_t line, size_t n) {
89+
cdf_malloc(const char *file __attribute__((__unused__)),
90+
size_t line __attribute__((__unused__)), size_t n)
91+
{
9092
DPRINTF(("%s,%zu: %s %zu\n", file, line, __func__, n));
9193
return malloc(n);
9294
}
9395

9496
static void *
95-
cdf_realloc(const char *file, size_t line, void *p, size_t n) {
97+
cdf_realloc(const char *file __attribute__((__unused__)),
98+
size_t line __attribute__((__unused__)), void *p, size_t n)
99+
{
96100
DPRINTF(("%s,%zu: %s %zu\n", file, line, __func__, n));
97101
return realloc(p, n);
98102
}
99103

100104
static void *
101-
cdf_calloc(const char *file, size_t line, size_t n, size_t u) {
105+
cdf_calloc(const char *file __attribute__((__unused__)),
106+
size_t line __attribute__((__unused__)), size_t n, size_t u)
107+
{
102108
DPRINTF(("%s,%zu: %s %zu %zu\n", file, line, __func__, n, u));
103109
return calloc(n, u);
104110
}

0 commit comments

Comments
 (0)