Prevent clang errors about promoted type incompatibilities of K&R function parameters.

This commit is contained in:
Stephan Bergmann 2011-10-17 23:13:51 +02:00
parent 1d43c71138
commit b6ba12c729
3 changed files with 3 additions and 20 deletions

View file

@ -45,11 +45,7 @@ extern char *notdotdot[ ];
extern boolean show_where_not;
extern boolean warn_multiple;
struct inclist *inc_path(file, include, dot, incCollection)
register char *file,
*include;
boolean dot;
struct IncludesCollection* incCollection;
struct inclist *inc_path(register char *file, register char *include, boolean dot, struct IncludesCollection* incCollection)
{
static char path[ BUFSIZ ];
register char **pp, *p;

View file

@ -41,13 +41,7 @@ int zero_value(register char *exp, register struct filepointer *filep,
extern char *directives[];
extern struct symhash *maininclist;
int find_includes(filep, file, file_red, recursion, failOK, incCollection, symbols)
struct filepointer *filep;
struct inclist *file, *file_red;
int recursion;
boolean failOK;
struct IncludesCollection* incCollection;
struct symhash *symbols;
int find_includes(struct filepointer *filep, struct inclist *file, struct inclist *file_red, int recursion, boolean failOK, struct IncludesCollection* incCollection, struct symhash *symbols)
{
register char *line;
register int type;

View file

@ -40,14 +40,7 @@ extern boolean printed;
extern boolean verbose;
extern boolean show_where_not;
void add_include(filep, file, file_red, include, dot, failOK, incCollection, symbols)
struct filepointer *filep;
struct inclist *file, *file_red;
char *include;
boolean dot;
boolean failOK;
struct IncludesCollection* incCollection;
struct symhash *symbols;
void add_include(struct filepointer *filep, struct inclist *file, struct inclist *file_red, char *include, boolean dot, boolean failOK, struct IncludesCollection* incCollection, struct symhash *symbols)
{
register struct inclist *newfile;
register struct filepointer *content;