aboutsummaryrefslogtreecommitdiffstats
path: root/cparser
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2016-09-21 16:34:52 +0200
committerBernhard Schommer <bernhardschommer@gmail.com>2016-09-21 16:34:52 +0200
commit7ea84da5144e28d68dca5a22e3b868d7ac7ad285 (patch)
tree00c0364b899aa70daec23ccc85890cddfc0b17b5 /cparser
parente346f0da710591690fc6b94f921fb5a39a11c7bf (diff)
downloadcompcert-7ea84da5144e28d68dca5a22e3b868d7ac7ad285.tar.gz
compcert-7ea84da5144e28d68dca5a22e3b868d7ac7ad285.zip
Also warn for empty default declarations. Bug 18004
Diffstat (limited to 'cparser')
-rw-r--r--cparser/Elab.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/cparser/Elab.ml b/cparser/Elab.ml
index b6418217..9cdf6c29 100644
--- a/cparser/Elab.ml
+++ b/cparser/Elab.ml
@@ -2019,7 +2019,7 @@ let enter_decdefs local loc env sto dl =
(* Sanity checks on storage class *)
if sto = Storage_register && not local then
fatal_error loc "'register' storage-class on file-scoped variable";
- if sto <> Storage_default && dl = [] then
+ if dl = [] then
warning loc Missing_declarations "declaration does not declare anything";
let enter_decdef (decls, env) (s, ty, init) =
let isfun = is_function_type env ty in