Branch: Tag:

2004-11-14

2004-11-14 17:44:05 by Martin Stjernholm <mast@lysator.liu.se>

Removed gcc hints to check the printf style format string for Pike_error,
Pike_fatal and associated functions since they no longer are printf
compatible. Pity.

Rev: src/error.c:1.141
Rev: src/pike_error.h:1.36

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: error.c,v 1.140 2004/11/11 16:10:44 grubba Exp $ + || $Id: error.c,v 1.141 2004/11/14 17:44:05 mast Exp $   */      #define NO_PIKE_SHORTHAND
494:    do_abort();   }    - PMOD_EXPORT DECLSPEC(noreturn) void Pike_error(const char *fmt,...) ATTRIBUTE((noreturn,format (printf, 1, 2))) + PMOD_EXPORT DECLSPEC(noreturn) void Pike_error(const char *fmt,...) ATTRIBUTE((noreturn))   {    va_list args;    va_start(args,fmt);
502:    va_end(args);   }    - PMOD_EXPORT DECLSPEC(noreturn) void debug_fatal(const char *fmt, ...) ATTRIBUTE((noreturn,format (printf, 1, 2))) + PMOD_EXPORT DECLSPEC(noreturn) void debug_fatal(const char *fmt, ...) ATTRIBUTE((noreturn))   {    va_list args;    static int in_fatal = 0;
879:    struct object *o,    const char *func,    struct svalue *base_sp, int args, -  const char *desc, ...) ATTRIBUTE((noreturn,format (printf, 5, 6))) +  const char *desc, ...) ATTRIBUTE((noreturn))   {    va_list foo;    va_start(foo,desc);
891:   PMOD_EXPORT DECLSPEC(noreturn) void generic_error(    const char *func,    struct svalue *base_sp, int args, -  const char *desc, ...) ATTRIBUTE((noreturn,format (printf, 4, 5))) +  const char *desc, ...) ATTRIBUTE((noreturn))   {    INIT_ERROR(generic);    ERROR_DONE(generic);
902:    struct svalue *base_sp, int args,    struct svalue *value,    struct svalue *index, -  const char *desc, ...) ATTRIBUTE((noreturn,format (printf, 6, 7))) +  const char *desc, ...) ATTRIBUTE((noreturn))   {    INIT_ERROR(index);    ERROR_COPY_SVALUE(index, value);
916:    int which_argument,    const char *expected_type,    struct svalue *got_value, -  const char *desc, ...) ATTRIBUTE((noreturn,format (printf, 7, 8))) +  const char *desc, ...) ATTRIBUTE((noreturn))   {    INIT_ERROR(bad_argument);    ERROR_COPY(bad_argument, which_argument);
934:    const char *func,    struct svalue *base_sp, int args,    struct svalue *number, -  const char *desc, ...) ATTRIBUTE((noreturn,format (printf, 5, 6))) +  const char *desc, ...) ATTRIBUTE((noreturn))   {    INIT_ERROR(math);    if(number)
953:    struct svalue *base_sp, int args,    const char *resource_type,    size_t howmuch_, -  const char *desc, ...) ATTRIBUTE((noreturn,format (printf, 6, 7))) +  const char *desc, ...) ATTRIBUTE((noreturn))   {    INT_TYPE howmuch = DO_NOT_WARN((INT_TYPE)howmuch_);    INIT_ERROR(resource);
966:    const char *func,    struct svalue *base_sp, int args,    const char *permission_type, -  const char *desc, ...) ATTRIBUTE((noreturn, format(printf, 5, 6))) +  const char *desc, ...) ATTRIBUTE((noreturn))   {    INIT_ERROR(permission);    ERROR_STRUCT(permission,o)->permission_type=