Skip to content

Commit

Permalink
sprinkle unused
Browse files Browse the repository at this point in the history
  • Loading branch information
zoulasc committed Apr 26, 2017
1 parent 208d416 commit 69928a2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/cdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include "file.h"

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

#include <assert.h>
Expand Down Expand Up @@ -86,19 +86,25 @@ static union {


static void *
cdf_malloc(const char *file, size_t line, size_t n) {
cdf_malloc(const char *file __attribute__((__unused__)),
size_t line __attribute__((__unused__)), size_t n)
{
DPRINTF(("%s,%zu: %s %zu\n", file, line, __func__, n));
return malloc(n);
}

static void *
cdf_realloc(const char *file, size_t line, void *p, size_t n) {
cdf_realloc(const char *file __attribute__((__unused__)),
size_t line __attribute__((__unused__)), void *p, size_t n)
{
DPRINTF(("%s,%zu: %s %zu\n", file, line, __func__, n));
return realloc(p, n);
}

static void *
cdf_calloc(const char *file, size_t line, size_t n, size_t u) {
cdf_calloc(const char *file __attribute__((__unused__)),
size_t line __attribute__((__unused__)), size_t n, size_t u)
{
DPRINTF(("%s,%zu: %s %zu %zu\n", file, line, __func__, n, u));
return calloc(n, u);
}
Expand Down

0 comments on commit 69928a2

Please sign in to comment.