2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

a different approach to shutting up compilers about an empty file, one that

does not cause all the compilers to complain about a variable being
defined but not used.
This commit is contained in:
David Lawrence 2001-04-13 02:26:32 +00:00
parent 95799c090c
commit ddb8f23a09
2 changed files with 20 additions and 8 deletions

View File

@ -15,10 +15,18 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: condition.c,v 1.3 2001/04/12 22:26:40 tale Exp $ */ /* $Id: condition.c,v 1.4 2001/04/13 02:26:30 tale Exp $ */
/* /*
* This file intentionally left blank. The useless static variable below * This file intentionally left blank.
* stops some compilers from complaining about an empty file.
*/ */
static int isc_condition_file_not_used;
/*
* Well, not completely. The stupid hack below shuts up compilers
* from complaining about an empty file.
*/
static void
isc_condition_nothreads(void) {
isc_condition_nothreads();
}

View File

@ -15,10 +15,14 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: mutex.c,v 1.3 2001/04/12 22:26:41 tale Exp $ */ /* $Id: mutex.c,v 1.4 2001/04/13 02:26:32 tale Exp $ */
/* /*
* This file intentionally left blank. The useless static variable below * Well, not completely. The stupid hack below shuts up compilers
* stops some compilers from complaining about an empty file. * from complaining about an empty file.
*/ */
static int isc_mutex_file_not_used; static void
isc_mutex_nothreads(void) {
isc_mutex_nothreads();
}