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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user