summaryrefslogtreecommitdiffstats
path: root/go
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-06 10:51:53 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-06 10:51:53 +0000
commit9bd66f4fd8f4a6918f6f1164ad7c5573067b68a1 (patch)
tree0e5bad21294e960bf15b62a46b22a036e39b67e7 /go
parente9578557daf661b50db13dc48a398c06db0eb196 (diff)
downloadzabbix-9bd66f4fd8f4a6918f6f1164ad7c5573067b68a1.tar.gz
zabbix-9bd66f4fd8f4a6918f6f1164ad7c5573067b68a1.tar.xz
zabbix-9bd66f4fd8f4a6918f6f1164ad7c5573067b68a1.zip
- [DEV-130] Compile warnings
git-svn-id: svn://svn.zabbix.com/trunk@5451 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'go')
-rwxr-xr-xgo11
1 files changed, 10 insertions, 1 deletions
diff --git a/go b/go
index f6b298e3..ae38a765 100755
--- a/go
+++ b/go
@@ -28,7 +28,16 @@ echo Configuring...
#export CFLAGS="-Wall -Wuninitialized -O -DDEBUG"
export CFLAGS="-Wall -Wuninitialized -O -g"
cd create/schema
-./gen.pl c >../../include/dbsync.h
+./gen.pl c >../../src/libs/zbxdbhigh/dbschema.c
+echo -e "\n#ifdef HAVE_MYSQL\nconst char *db_schema= {\"\\">>../../src/libs/zbxdbhigh/dbschema.c
+./gen.pl mysql|sed -e 's/\t\t*/ /g' -e 's/$/\\/' >>../../src/libs/zbxdbhigh/dbschema.c
+echo -e "\"};\n#elif HAVE_POSTGRESQL\nconst char *db_schema = {\"\\">>../../src/libs/zbxdbhigh/dbschema.c
+./gen.pl postgresql|sed -e 's/\t\t*/ /g' -e 's/$/\\/' >>../../src/libs/zbxdbhigh/dbschema.c
+echo -e "\"};\n#elif HAVE_ORACLE\nconst char *db_schema = {\"\\">>../../src/libs/zbxdbhigh/dbschema.c
+./gen.pl oracle|sed -e 's/\t\t*/ /g' -e 's/$/\\/' >>../../src/libs/zbxdbhigh/dbschema.c
+echo -e "\"};\n#elif HAVE_SQLITE3\nconst char *db_schema = {\"\\" >>../../src/libs/zbxdbhigh/dbschema.c
+./gen.pl sqlite|sed -e 's/\t\t*/ /g' -e 's/$/\\/' >>../../src/libs/zbxdbhigh/dbschema.c
+echo -e "\"};\n#endif /* HAVE_SQLITE3 */\n" >>../../src/libs/zbxdbhigh/dbschema.c
cd -
#export CFLAGS="-Wall -pedantic"
#for db in sqlite3 pgsql mysql; do