From 255698e00c6200be70b6e72eec76c154249ac581 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Fri, 10 May 2013 17:22:05 +0200 Subject: make: allow to overwrite CFLAGS, CCACHE Allow to define custom compile flags, e.g. ... make CFLAGS="-O2 -Wall" ... and also allow to overwrite ccache variable: make CCACHE= all Also do some minor fixes when built with -O2 -Wall. Signed-off-by: Daniel Borkmann --- pcap_io.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pcap_io.h') diff --git a/pcap_io.h b/pcap_io.h index a491f39..64689af 100644 --- a/pcap_io.h +++ b/pcap_io.h @@ -132,9 +132,9 @@ struct pcap_file_ops { void (*fsync_pcap)(int fd); }; -extern const struct pcap_file_ops pcap_rw_ops; -extern const struct pcap_file_ops pcap_sg_ops; -extern const struct pcap_file_ops pcap_mm_ops; +extern const struct pcap_file_ops pcap_rw_ops __maybe_unused; +extern const struct pcap_file_ops pcap_sg_ops __maybe_unused; +extern const struct pcap_file_ops pcap_mm_ops __maybe_unused; static inline uint16_t tp_to_pcap_tsource(uint32_t status) { -- cgit v1.2.3-54-g00ecf