Skip to content

Commit

Permalink
2005-02-28 Roland McGrath <roland@redhat.com>
Browse files Browse the repository at this point in the history
	* debug/warning-nop.c (__nop): Rename to nop, make it static.
	(__warndecl): Use alias attribute directly, instead of strong_alias
	macro.  Add attribute_hidden.
  • Loading branch information
Roland McGrath committed Mar 1, 2005
1 parent 8b8b797 commit 1104e1f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions debug/warning-nop.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@

#include <sys/cdefs.h>

void __nop (void)
static void
nop (void)
{
}

/* Don't insert any other #include's before this #undef! */

#undef __warndecl
#define __warndecl(name, msg) \
strong_alias (__nop, name) link_warning (name, msg)
extern void name (void) __attribute__ ((alias ("nop"))) attribute_hidden; \
link_warning (name, msg)

#undef __USE_FORTIFY_LEVEL
#define __USE_FORTIFY_LEVEL 99
Expand Down

0 comments on commit 1104e1f

Please sign in to comment.