Suppress compiler warnings about empty translation units

This commit is contained in:
Andreas Gustafsson
2001-11-20 21:28:41 +00:00
parent e2fd9af691
commit 4f30395c97
7 changed files with 42 additions and 27 deletions

View File

@@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
* $Id: openssl_link.c,v 1.47 2001/11/07 23:03:54 bwelling Exp $
* $Id: openssl_link.c,v 1.48 2001/11/20 21:28:38 gson Exp $
*/
#ifdef OPENSSL
@@ -189,4 +189,10 @@ dst__openssl_destroy() {
mem_free(rm);
}
#else /* OPENSSL */
#include <isc/util.h>
EMPTY_TRANSLATION_UNIT
#endif /* OPENSSL */

View File

@@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
* $Id: openssldh_link.c,v 1.42 2001/11/06 23:10:34 bwelling Exp $
* $Id: openssldh_link.c,v 1.43 2001/11/20 21:28:39 gson Exp $
*/
#ifdef OPENSSL
@@ -549,4 +549,10 @@ dst__openssldh_init(dst_func_t **funcp) {
return (ISC_R_SUCCESS);
}
#else /* OPENSSL */
#include <isc/util.h>
EMPTY_TRANSLATION_UNIT
#endif /* OPENSSL */

View File

@@ -17,7 +17,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: openssldsa_link.c,v 1.7 2001/11/06 22:51:00 bwelling Exp $ */
/* $Id: openssldsa_link.c,v 1.8 2001/11/20 21:28:40 gson Exp $ */
#ifdef OPENSSL
@@ -435,4 +435,10 @@ dst__openssldsa_init(dst_func_t **funcp) {
return (ISC_R_SUCCESS);
}
#else /* OPENSSL */
#include <isc/util.h>
EMPTY_TRANSLATION_UNIT
#endif /* OPENSSL */

View File

@@ -17,7 +17,7 @@
/*
* Principal Author: Brian Wellington
* $Id: opensslrsa_link.c,v 1.16 2001/11/06 22:50:58 bwelling Exp $
* $Id: opensslrsa_link.c,v 1.17 2001/11/20 21:28:41 gson Exp $
*/
#ifdef OPENSSL
@@ -518,4 +518,10 @@ dst__opensslrsa_init(dst_func_t **funcp) {
return (ISC_R_SUCCESS);
}
#else /* OPENSSL */
#include <isc/util.h>
EMPTY_TRANSLATION_UNIT
#endif /* OPENSSL */

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: util.h,v 1.21 2001/01/09 21:57:43 bwelling Exp $ */
/* $Id: util.h,v 1.22 2001/11/20 21:28:34 gson Exp $ */
#ifndef ISC_UTIL_H
#define ISC_UTIL_H 1
@@ -64,6 +64,12 @@
var = _u.v; \
} while (0)
/*
* Use this in translation units that would otherwise be empty, to
* suppress compiler warnings.
*/
#define EMPTY_TRANSLATION_UNIT static void isc__empty(void) { isc__empty(); }
/*
* We use macros instead of calling the routines directly because
* the capital letters make the locking stand out.

View File

@@ -15,18 +15,8 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: condition.c,v 1.4 2001/04/13 02:26:30 tale Exp $ */
/* $Id: condition.c,v 1.5 2001/11/20 21:28:35 gson Exp $ */
/*
* This file intentionally left blank.
*/
/*
* 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();
}
#include <isc/util.h>
EMPTY_TRANSLATION_UNIT

View File

@@ -15,14 +15,9 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: mutex.c,v 1.4 2001/04/13 02:26:32 tale Exp $ */
/* $Id: mutex.c,v 1.5 2001/11/20 21:28:36 gson Exp $ */
/*
* Well, not completely. The stupid hack below shuts up compilers
* from complaining about an empty file.
*/
static void
isc_mutex_nothreads(void) {
isc_mutex_nothreads();
}
#include <isc/util.h>
EMPTY_TRANSLATION_UNIT