diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-07-13 17:24:04 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-07-13 17:24:04 +0200 |
commit | eb5cd761fca41197dc35d42ab9e47b453621d3f7 (patch) | |
tree | c41318ef607f412a1aae95c75702c8f067788d73 | |
parent | 6bb3e4fe7e2b902b047c76a0cdf5889715c693ff (diff) |
pcap_mm: Mark unused parameters with __maybe_unused
In order to avoid compiler warnings when compiling with
-W/-Wunused-parameter, mark unused function parameters with
__maybe_unused.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | pcap_mm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -64,8 +64,8 @@ static ssize_t pcap_mm_write(int fd, pcap_pkthdr_t *phdr, enum pcap_type type, return hdrsize + len; } -static ssize_t pcap_mm_read(int fd, pcap_pkthdr_t *phdr, enum pcap_type type, - uint8_t *packet, size_t len) +static ssize_t pcap_mm_read(int fd __maybe_unused, pcap_pkthdr_t *phdr, + enum pcap_type type, uint8_t *packet, size_t len) { size_t hdrsize = pcap_get_hdr_length(phdr, type), hdrlen; @@ -169,7 +169,7 @@ static int pcap_mm_prepare_access(int fd, enum pcap_mode mode, bool jumbo) return 0; } -static void pcap_mm_fsync(int fd) +static void pcap_mm_fsync(int fd __maybe_unused) { msync(ptr_va_start, (off_t) (ptr_va_curr - ptr_va_start), MS_ASYNC); } |