fix remaining warnings in 'make world'

This commit is contained in:
David van Moolenbroek
2009-12-14 20:25:52 +00:00
parent 14367afaf7
commit d1918e2e9f
8 changed files with 12 additions and 17 deletions

View File

@@ -636,7 +636,7 @@ static void starttcap(term)
* This function is called once during initialization, and thereafter it is
* called whenever the SIGWINCH signal is sent to this process.
*/
int getsize(signo)
void getsize(signo)
int signo;
{
int lines;
@@ -719,8 +719,6 @@ int getsize(signo)
*o_columns = COLS;
}
#endif
return 0;
}

View File

@@ -14,7 +14,7 @@
# For MS-DOS, add "-DMS_DOS" to DEFS. See the directory MISC/MSDOS for
# additional info.
CFLAGS = @CFLAGS@
CFLAGS = @CFLAGS@ -D_POSIX_SOURCE=1
CPPFLAGS = @CPPFLAGS@
DEFS = @DEFS@
LDFLAGS = @LDFLAGS@

View File

@@ -1491,7 +1491,7 @@ YY_DECL
int doing_codeblock = false;
int i;
Char nmdef[MAXLINE], myesc();
Char nmdef[MAXLINE];
#line 1498 "scan.c"
@@ -2291,7 +2291,6 @@ YY_RULE_SETUP
#line 435 "scan.l"
{
register Char *nmdefptr;
Char *ndlookup();
strcpy( nmstr, yytext + 1 );
nmstr[yyleng - 2] = '\0'; /* chop trailing brace */

View File

@@ -2,8 +2,12 @@
/* $Header$ */
#include "flexdef.h"
extern int yylex(void);
int main PROTO((int, char**));
int main( argc, argv )
int argc;
char *argv[];

View File

@@ -43,6 +43,7 @@ static char flex_version[] = FLEX_VERSION;
/* declare functions that have forward references */
int main PROTO((int, char**));
void flexinit PROTO((int, char**));
void readin PROTO((void));
void set_up_initial_allocations PROTO((void));

View File

@@ -98,7 +98,7 @@ LEXOPT [aceknopr]
int doing_codeblock = false;
int i;
Char nmdef[MAXLINE], myesc();
Char nmdef[MAXLINE];
<INITIAL>{
@@ -434,7 +434,6 @@ LEXOPT [aceknopr]
"{"{NAME}"}" {
register Char *nmdefptr;
Char *ndlookup();
strcpy( nmstr, yytext + 1 );
nmstr[yyleng - 2] = '\0'; /* chop trailing brace */

View File

@@ -40,8 +40,6 @@ struct hash_entry *ndtbl[NAME_TABLE_HASH_SIZE];
struct hash_entry *sctbl[START_COND_HASH_SIZE];
struct hash_entry *ccltab[CCL_HASH_SIZE];
struct hash_entry *findsym();
/* addsym - add symbol and definitions to symbol table
*
@@ -105,7 +103,6 @@ int cclnum;
/* We don't bother checking the return status because we are not
* called unless the symbol is new.
*/
Char *copy_unsigned_string();
(void) addsym( (char *) copy_unsigned_string( ccltxt ),
(char *) 0, cclnum,
@@ -179,8 +176,6 @@ void ndinstal( name, definition )
char name[];
Char definition[];
{
char *copy_string();
Char *copy_unsigned_string();
if ( addsym( copy_string( name ),
(char *) copy_unsigned_string( definition ), 0,
@@ -227,7 +222,6 @@ void scinstal( str, xcluflg )
char str[];
int xcluflg;
{
char *copy_string();
/* Generate start condition definition, for use in BEGIN et al. */
action_define( str, lastsc );