diff options
| author | Neil Conway <neilc@samurai.com> | 2005-06-30 07:08:59 +0000 |
|---|---|---|
| committer | Neil Conway <neilc@samurai.com> | 2005-06-30 07:08:59 +0000 |
| commit | 4802bb57a6d5331f32bc14bb196e397021fece1c (patch) | |
| tree | 766ef5218fac60e4aa75adad390809950d441af8 /src/interfaces/ecpg/test/dyntest2.pgc | |
| parent | 175c25a40472d06656fbddc46f0e8a1e0b0cb867 (diff) | |
| download | postgresql-4802bb57a6d5331f32bc14bb196e397021fece1c.tar.gz | |
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.
Diffstat (limited to 'src/interfaces/ecpg/test/dyntest2.pgc')
| -rw-r--r-- | src/interfaces/ecpg/test/dyntest2.pgc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/test/dyntest2.pgc b/src/interfaces/ecpg/test/dyntest2.pgc index c7128648e8..06241c8ae8 100644 --- a/src/interfaces/ecpg/test/dyntest2.pgc +++ b/src/interfaces/ecpg/test/dyntest2.pgc @@ -2,7 +2,7 @@ * * Copyright (c) 2000, Christof Petig <christof.petig@wtal.de> * - * $PostgreSQL: pgsql/src/interfaces/ecpg/test/dyntest2.pgc,v 1.5 2003/11/29 19:52:09 pgsql Exp $ + * $PostgreSQL: pgsql/src/interfaces/ecpg/test/dyntest2.pgc,v 1.6 2005/06/30 07:08:59 neilc Exp $ */ #include <stdio.h> @@ -11,7 +11,7 @@ exec sql include sql3types; exec sql include sqlca; -static void error() +static void error(void) { printf("\n#%ld:%s\n",sqlca.sqlcode,sqlca.sqlerrm.sqlerrmc); exit(1); |
