@ func_1 @ type rtn_type; identifier arg; @@ static int func(void *arg) { ... }@@ identifier func1.func; expression e; @@ - fn((void *)e) + fn(e)
Note that if you get rid of some of the errors, but not the use of fn in the second rule, you get the following warning:
warning: rule starting on line 10: inherited metavariable func not used in the -, +, or context code
This is something to look out for if you expect lots of answers and get none. Perhaps this should even be an error rather than a warning.
julia _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
