opnsense-src/lib/libcasper/services/cap_dns
Adrian Chadd 388197f414 [libcasper] Update cap_dns API to not trigger unused variable warnings when disabled
When compiling without casper these API calls result in unused variable warnings.
Using #defines was lovely in the past but unfortunately it triggers warnings
which can cascade into errors.

Instead, just inline with some fallthrough functions and keep things happy.

Tested:

* gcc-6 targeting mips32, with casper disabled

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D26762
2020-10-13 22:49:43 +00:00
..
tests build: provide a default WARNS for all in-tree builds 2020-09-18 17:17:46 +00:00
cap_dns.3 libcasper: Introduce cap_net a network service for Casper. 2020-08-16 18:12:21 +00:00
cap_dns.c libcasper: provide compatibility with the old version of service 2018-11-19 17:22:52 +00:00
cap_dns.h [libcasper] Update cap_dns API to not trigger unused variable warnings when disabled 2020-10-13 22:49:43 +00:00
Makefile libcasper: Introduce cap_net a network service for Casper. 2020-08-16 18:12:21 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00