Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.307
 
1.308
 
MAIN:ragge:20110122220823
 
pftn.c
_>21962196                 /*
 21972197                  * Handle non-prototype declarations.
 21982198                  */
<>2199 -                if (Wimplicit_function_declaration) {
 2200 -                        if (f->n_sp != NULL) {
 2201 -                                if (strncmp(f->n_sp->sname,
 2202 -                                    "__builtin", 9) != 0)
 2203 -                                        werror("no prototype for function "
 2204 -                                            "'%s()'", f->n_sp->sname);
 2205 -                        } else {
 2206 -                                werror("no prototype for function pointer");
 2207 -                        }
 2208 -                }
  2199+                if (f->n_op == NAME && f->n_sp != NULL) {
  2200+                        if (strncmp(f->n_sp->sname, "__builtin", 9) != 0)
  2201+                                warner(Wmissing_prototypes, f->n_sp->sname);
  2202+                } else
  2203+                        warner(Wmissing_prototypes, "<pointer>");
  2204+
22092205                 /* floats must be cast to double */
 22102206                 if (a == NULL)
 22112207                         goto build;
     
 !
23522348 
 23532349                 if ((type & ~BTMASK) == (arrt & ~BTMASK)) {
 23542350                         /* do not complain for pointers with signedness */
<>2355 -                        if (!Wpointer_sign &&
 2356 -                            DEUNSIGN(BTYPE(type)) == DEUNSIGN(BTYPE(arrt)))
  2351+                        if ((DEUNSIGN(BTYPE(type)) == DEUNSIGN(BTYPE(arrt))) &&
  2352+                            (BTYPE(type) != BTYPE(arrt))) {
  2353+                                warner(Wpointer_sign, NULL);
23572354                                 goto skip;
<> 2355+                        }
<_23582356                 }
 23592357 
 23602358                 werror("implicit conversion of argument %d due to prototype",
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-16 09:28 +0200