summaryrefslogtreecommitdiff
path: root/gcc/errors.c
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2009-04-22 16:01:29 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2009-04-22 16:01:29 +0000
commit38d2336a2356074209d055098c7646cc30eb43df (patch)
treed587aea0284879b9e223bbb698dfdcaff883189d /gcc/errors.c
parent7a29c1adc71d0f5817d9f893c138a236fc615a3e (diff)
Makefile.in: Update dependencies.
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. From-SVN: r146594
Diffstat (limited to 'gcc/errors.c')
-rw-r--r--gcc/errors.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/errors.c b/gcc/errors.c
index fcc3446d270..d89e14d94d6 100644
--- a/gcc/errors.c
+++ b/gcc/errors.c
@@ -40,8 +40,8 @@ int have_error = 0;
/* Print a warning message - output produced, but there may be problems. */
-bool
-warning (int opt ATTRIBUTE_UNUSED, const char *format, ...)
+void
+warning (const char *format, ...)
{
va_list ap;
@@ -50,7 +50,6 @@ warning (int opt ATTRIBUTE_UNUSED, const char *format, ...)
vfprintf (stderr, format, ap);
va_end (ap);
fputc('\n', stderr);
- return true;
}