summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b5a82d6)
raw | patch | inline | side by side (parent: b5a82d6)
author | Florian Forster <octo@collectd.org> | |
Sun, 3 Feb 2013 09:46:06 +0000 (10:46 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 3 Feb 2013 09:46:06 +0000 (10:46 +0100) |
postgresql.c: In function 'c_psql_flush':
postgresql.c:974: warning: dereferencing type-punned pointer will break strict-aliasing rules
postgresql.c:974: warning: dereferencing type-punned pointer will break strict-aliasing rules
src/postgresql.c | patch | blob | history |
diff --git a/src/postgresql.c b/src/postgresql.c
index e7b247e77e8fa983d131012d1149c869c24e5ff9..98ceb6d3dc78cec10bd7ed4966ee5d50a7204567 100644 (file)
--- a/src/postgresql.c
+++ b/src/postgresql.c
size_t i;
if ((ud != NULL) && (ud->data != NULL)) {
- dbs = (c_psql_database_t **)&ud->data;
+ dbs = (void *)&ud->data;
dbs_num = 1;
}