aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-01-20 05:26:54 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-01-20 05:26:54 +0000
commit1c1518674727b903840ad235f06104d7ac3c0465 (patch)
tree6639b1549c7979b7e3a5205348c21b2c1bcfa2a1
parentb6fdd147650e17a0c47dc30dacfcf78b7bc10882 (diff)
downloadpostgresql-1c1518674727b903840ad235f06104d7ac3c0465.tar.gz
postgresql-1c1518674727b903840ad235f06104d7ac3c0465.zip
Clean up longstanding gcc warnings by adding missing extern
declarations.
-rw-r--r--src/backend/parser/scan.l4
-rw-r--r--src/include/parser/gramparse.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/backend/parser/scan.l b/src/backend/parser/scan.l
index 02cecf0e589..83afeb7a418 100644
--- a/src/backend/parser/scan.l
+++ b/src/backend/parser/scan.l
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.60 1999/10/18 02:42:31 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.61 2000/01/20 05:26:53 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -356,7 +356,7 @@ other .
%%
-void yyerror(char message[])
+void yyerror(const char * message)
{
elog(ERROR, "parser: %s at or near \"%s\"", message, yytext);
}
diff --git a/src/include/parser/gramparse.h b/src/include/parser/gramparse.h
index 6af8242e965..3433865fa75 100644
--- a/src/include/parser/gramparse.h
+++ b/src/include/parser/gramparse.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: gramparse.h,v 1.9 1999/02/13 23:21:55 momjian Exp $
+ * $Id: gramparse.h,v 1.10 2000/01/20 05:26:54 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -16,6 +16,8 @@
/* from scan.l */
extern void init_io(void);
+extern int yylex(void);
+extern void yyerror(const char * message);
/* from gram.y */
extern Oid param_type(int t);