warning: type defaults to `int' in declaration of `s'??
Hi,
Does anyone know why gcc would give me this error on the line in red?
warning: type defaults to `int' in declaration of `s'
Code:
if ( in_file != (char *) NULL ) {
char *s;
if (! chk_suffix( in_file, ".rpc" ) )
errorf( 413, "invalid input file name %s", in_file );
s = mod_name( in_file, ".rpc", ".h", STRIPDIR );
header = STRCPY(s);
if ( source == (char *) NULL ) {
s = mod_name( in_file, ".rpc", ".c", STRIPDIR );
source = STRCPY(s);
}
}
s is obviously declared as a char* a few lines above it...
mod_name() returns a char*.