fixed some warnings, introduced with changes made 15.06.1003
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 18 Jun 2003 20:31:11 +0000 (20:31 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 18 Jun 2003 20:31:11 +0000 (20:31 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2704 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/SDCC.lex
src/SDCCmain.c

index cc518b9ad15321cc15580f664f656cf6e4535e89..721f8707f1a5ccd0abdc09e1c850e7563fb58760 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-06-18  Borut Razem <borut.razem@siol.net>
+
+       * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
+
 2003-06-18  Jesus Calvino-Fraga <jesusc@ece.ubc.ca>
 
        * src/SDCCglobl.h, src/SDCCmain.c:
index 64e38670068fd2b00ba34ccabfcff2b222a415c7..d7c7e570730c7fec9fe480f441cb1af64ef1ee59 100644 (file)
@@ -39,14 +39,14 @@ IS       (u|U|l|L)*
 #include "newalloc.h"
 #include "dbuf.h"
 
-char *stringLiteral();
+static char *stringLiteral(void);
 char *currFname;
 
 extern int lineno, column;
-extern char *filename ;
-int   mylineno = 1               ;
-void count()                     ;
-int process_pragma(char *);
+extern char *filename;
+int  mylineno = 1;
+static void count(void);
+static int process_pragma(char *);
 #undef yywrap
 
 #ifndef YYPROTO
@@ -72,17 +72,17 @@ static void my_unput(char c)
 }
 
 #define TKEYWORD(token) return (isTargetKeyword(yytext) ? token :\
-                               check_type(yytext))
+                               check_type())
 char *asmbuff=NULL;
 int asmbuffSize=0;
 char *asmp ;
-extern int check_type          ();
- extern int isTargetKeyword     ();
-extern int checkCurrFile       (char *);
-extern int processPragma       (char *);
-extern int printListing                (int   );
-struct optimize save_optimize ;
-struct options  save_options  ;
+static int check_type(void);
+static int isTargetKeyword(char *s);
+static int checkCurrFile (char *s);
+//extern int processPragma     (char *);
+//extern int printListing              (int   );
+struct optimize save_optimize;
+struct options  save_options;
 %}
 
 %x asm
index fdadaa08de4b4ef6ca4911643a4aa15577a12d56..4dc4da94ec69828c9221ec0fa97ef2d9f9b03f97 100644 (file)
@@ -1729,6 +1729,7 @@ setBinPaths(const char *argv0)
 }
 
 /* Set system include path */
+static void
 setIncludePath(void)
 {
   char *p;