summaryrefslogtreecommitdiff
path: root/gcc/errors.h
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-22 16:01:29 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-22 16:01:29 +0000
commit86931af817fb28cfa015abca52e801ad2ee3861a (patch)
treed587aea0284879b9e223bbb698dfdcaff883189d /gcc/errors.h
parent1105fde0f0275e0fdbdb76c1b4a707910af245e1 (diff)
downloadgcc-86931af817fb28cfa015abca52e801ad2ee3861a.tar.gz
2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* Makefile.in: Update dependencies. * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'. * errors.h: Remove bogus comment about compatibility. (warning): Update declaration. * genautomata.c: Update all calls to warning. * gimple.c: Do not include errors.h. Include toplev.h. * tree-ssa-structalias.c: Do not include errors.h. * omega.c: Likewise. * tree-ssa-reassoc.c: Likewise. * config/spu/spu-c.c: Likewise. * config/spu/t-spu-elf: Update dependencies. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146594 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/errors.h')
-rw-r--r--gcc/errors.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/errors.h b/gcc/errors.h
index 10d52c72d2d..c66054368da 100644
--- a/gcc/errors.h
+++ b/gcc/errors.h
@@ -29,11 +29,7 @@ along with GCC; see the file COPYING3. If not see
#ifndef GCC_ERRORS_H
#define GCC_ERRORS_H
-/* The first parameter is for compatibility with the non-generator
- version of warning(). For those, you'd pass an OPT_W* value from
- options.h, but in generator programs it has no effect, so it's OK
- to just pass zero for calls from generator-only files. */
-extern bool warning (int, const char *, ...) ATTRIBUTE_PRINTF_2 ATTRIBUTE_COLD;
+extern void warning (const char *, ...) ATTRIBUTE_PRINTF_1 ATTRIBUTE_COLD;
extern void error (const char *, ...) ATTRIBUTE_PRINTF_1 ATTRIBUTE_COLD;
extern void fatal (const char *, ...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF_1 ATTRIBUTE_COLD;
extern void internal_error (const char *, ...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF_1 ATTRIBUTE_COLD;