summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-05-13 17:20:14 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-07-06 19:00:16 +0200
commitfcb30ed5e5b0f6e2065c5be81f9bb5b1e08f5141 (patch)
tree016b397c6382b48abaf2b04105d59aaa4919712e /src
parenta3047e0eb4b9483dd2369b0d3954d117527da735 (diff)
Accept 'long float' as rare pre-ANSI spelling of 'double'.
Diffstat (limited to 'src')
-rw-r--r--src/parser/parser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser/parser.c b/src/parser/parser.c
index 28b15c5..3c652a0 100644
--- a/src/parser/parser.c
+++ b/src/parser/parser.c
@@ -2930,6 +2930,10 @@ warn_about_long_long:
case SPECIFIER_FLOAT:
atomic_type = ATOMIC_TYPE_FLOAT;
break;
+
+ case SPECIFIER_LONG | SPECIFIER_FLOAT:
+ warningf(WARN_OTHER, pos, "'%hs' is a pre-ANSI spelling for '%hs'", "long float", "double");
+ /* FALLTHROUGH */
case SPECIFIER_DOUBLE:
atomic_type = ATOMIC_TYPE_DOUBLE;
break;