Quiet more warnings.

This commit is contained in:
hpa 2001-07-21 01:54:26 +00:00
parent 4bcf957aaf
commit 0034637792
3 changed files with 28 additions and 6 deletions

View file

@ -46,6 +46,9 @@
#define TFTPSUBS_H
#include <stdlib.h>
#include <stdio.h>
struct tftphdr;
struct tftphdr *r_init(void);
void read_ahead(FILE *, int);
@ -66,4 +69,13 @@ extern int segsize;
extern void *xmalloc(size_t);
extern char *xstrdup(const char *);
/*
* How to annotate unused variables
*/
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
#endif