From 4802bb57a6d5331f32bc14bb196e397021fece1c Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Thu, 30 Jun 2005 07:08:59 +0000 Subject: 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. --- src/interfaces/ecpg/test/test_init.pgc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/interfaces/ecpg/test/test_init.pgc') diff --git a/src/interfaces/ecpg/test/test_init.pgc b/src/interfaces/ecpg/test/test_init.pgc index d5c7e749663..29b14b20bd5 100644 --- a/src/interfaces/ecpg/test/test_init.pgc +++ b/src/interfaces/ecpg/test/test_init.pgc @@ -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; -- cgit v1.2.3