aboutsummaryrefslogtreecommitdiff
path: root/gcc/cexp.y
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-10-21 06:54:16 +0000
committerRichard Stallman <rms@gnu.org>1992-10-21 06:54:16 +0000
commit2f6f882470d32cc42a74a2eae7b244f7b020d3e7 (patch)
tree1f4028824431d9c361fbd156159f1f6febb6d9f1 /gcc/cexp.y
parentcfb2c0b17949ca448cae839982bf7f238404271b (diff)
downloadgcc-2f6f882470d32cc42a74a2eae7b244f7b020d3e7.zip
gcc-2f6f882470d32cc42a74a2eae7b244f7b020d3e7.tar.gz
gcc-2f6f882470d32cc42a74a2eae7b244f7b020d3e7.tar.bz2
(integer_overflow): Do nothing unless pedantic.
From-SVN: r2538
Diffstat (limited to 'gcc/cexp.y')
-rw-r--r--gcc/cexp.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cexp.y b/gcc/cexp.y
index 9530a37..0e48c0f 100644
--- a/gcc/cexp.y
+++ b/gcc/cexp.y
@@ -847,7 +847,8 @@ yyerror (s)
static void
integer_overflow ()
{
- pedwarn ("integer overflow in preprocessor expression");
+ if (pedantic)
+ pedwarn ("integer overflow in preprocessor expression");
}
static long