
1: /* Dummy nop functions to elicit link-time warnings. 2: Copyright (C) 2005 Free Software Foundation, Inc. 3: This file is part of the GNU C Library. 4: 5: The GNU C Library is free software; you can redistribute it and/or 6: modify it under the terms of the GNU Lesser General Public 7: License as published by the Free Software Foundation; either 8: version 2.1 of the License, or (at your option) any later version. 9: 10: The GNU C Library is distributed in the hope that it will be useful, 11: but WITHOUT ANY WARRANTY; without even the implied warranty of 12: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13: Lesser General Public License for more details. 14: 15: You should have received a copy of the GNU Lesser General Public 16: License along with the GNU C Library; if not, write to the Free 17: Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 18: 02111-1307 USA. */ 19: 20: #include <sys/cdefs.h> 21: 22: static void 23: nop (void) 24: { 25: } 26: 27: /* Don't insert any other #include's before this #undef! */ 28: 29: #undef __warndecl 30: #define __warndecl(name, msg) \ 31: extern void name (void) __attribute__ ((alias ("nop"))) attribute_hidden; \ 32: link_warning (name, msg) 33: 34: #undef __USE_FORTIFY_LEVEL 35: #define __USE_FORTIFY_LEVEL 99 36: 37: /* Following here we need an #include for each public header file 38: that uses __warndecl. */ 39: 40: /* Define away to avoid warnings with compilers that do not have these 41: builtins. */ 42: #define __builtin___memcpy_chk(dest, src, len, bos) NULL 43: #define __builtin___memmove_chk(dest, src, len, bos) NULL 44: #define __builtin___mempcpy_chk(dest, src, len, bos) NULL 45: #define __builtin___memset_chk(dest, ch, len, bos) NULL 46: #define __builtin___stpcpy_chk(dest, src, bos) NULL 47: #define __builtin___strcat_chk(dest, src, bos) NULL 48: #define __builtin___strcpy_chk(dest, src, bos) NULL 49: #define __builtin___strncat_chk(dest, src, len, bos) NULL 50: #define __builtin___strncpy_chk(dest, src, len, bos) NULL 51: #define __builtin_object_size(bos, level) 0 52: 53: #include <string.h>