1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-28 18:48:04 +03:00

Warning cleanups for ecpg tests. Avoid doing pointer arithmetic on void *,

remove old-style function declarations, and mark a function "static".
There are some remaining warnings, but this fixes most of them, anyway.
This commit is contained in:
Neil Conway
2005-06-30 07:08:59 +00:00
parent 175c25a404
commit 4802bb57a6
16 changed files with 21 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
exec sql include sqlca;
int fa() { return 2; }
int fa(void) { return 2; }
int fb(int x) { return x; }
int fc(const char *x) { return *x; }
int fd(const char *x,int i) { return (*x)*i; }
@@ -22,7 +22,7 @@ namespace N
};
#endif
int main()
int main(void)
{ struct sa x,*y;
exec sql begin declare section;
int a=(int)2;