Avoid compiler warnings for unused functions

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17386 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-07-28 17:09:28 +00:00
parent 042e827284
commit ed7fc4f34a
5 changed files with 31 additions and 10 deletions

View file

@ -92,8 +92,13 @@ __objc_dynamic_link(const char* module, int mode, const char* debug_file)
}
/* Return the address of a symbol given by the name 'symbol' from the module
associated with 'handle'
*/
* associated with 'handle'
* This function is not always used, so we mark it as unused to avoid warnings.
*/
static dl_symbol_t
__objc_dynamic_find_symbol(dl_handle_t handle, const char* symbol)
__attribute__((unused));
static dl_symbol_t
__objc_dynamic_find_symbol(dl_handle_t handle, const char* symbol)
{

View file

@ -39,8 +39,12 @@ __objc_dynamic_link(const char* module, int mode, const char* debug_file)
}
/* Return the address of a symbol given by the name 'symbol' from the module
associated with 'handle'
*/
* associated with 'handle'
* This function is not always used, so we mark it as unused to avoid warnings.
*/
static dl_symbol_t
__objc_dynamic_find_symbol(dl_handle_t handle, const char* symbol)
__attribute__((unused));
static dl_symbol_t
__objc_dynamic_find_symbol(dl_handle_t handle, const char* symbol)
{

View file

@ -33,8 +33,12 @@ __objc_dynamic_link(const char* module, int mode, const char* debug_file)
}
/* Return the address of a symbol given by the name 'symbol' from the module
associated with 'handle'
*/
* associated with 'handle'
* This function is not always used, so we mark it as unused to avoid warnings.
*/
static dl_symbol_t
__objc_dynamic_find_symbol(dl_handle_t handle, const char* symbol)
__attribute__((unused));
static dl_symbol_t
__objc_dynamic_find_symbol(dl_handle_t handle, const char* symbol)
{

View file

@ -47,8 +47,12 @@ __objc_dynamic_link(const char* module, int mode, const char* debug_file)
}
/* Return the address of a symbol given by the name 'symbol' from the module
associated with 'handle'
*/
* associated with 'handle'
* This function is not always used, so we mark it as unused to avoid warnings.
*/
static dl_symbol_t
__objc_dynamic_find_symbol(dl_handle_t handle, const char* symbol)
__attribute__((unused));
static dl_symbol_t
__objc_dynamic_find_symbol(dl_handle_t handle, const char* symbol)
{

View file

@ -37,8 +37,12 @@ __objc_dynamic_link(const char* module, int mode, const char* debug_file)
}
/* Return the address of a symbol given by the name 'symbol' from the module
associated with 'handle'
*/
* associated with 'handle'
* This function is not always used, so we mark it as unused to avoid warnings.
*/
static dl_symbol_t
__objc_dynamic_find_symbol(dl_handle_t handle, const char* symbol)
__attribute__((unused));
static dl_symbol_t
__objc_dynamic_find_symbol(dl_handle_t handle, const char* symbol)
{