fixed some bugs, changed warning interface

This commit is contained in:
eck
1989-10-27 13:33:10 +00:00
parent dccb2a8b8a
commit 6bc575ba9e
5 changed files with 23 additions and 9 deletions

View File

@@ -138,8 +138,9 @@ idf2expr(expr)
if (def == 0) {
if (AHEAD == '(') {
/* function call, declare name IMPLICITly (3.3.2.2) */
warning("implicit declaration of function %s"
, idf->id_text);
if (!options['o'])
warning("implicit declaration of function %s"
, idf->id_text);
add_def(idf, IMPLICIT, funint_type, level);
} else {
if (!is_anon_idf(idf))