From 7b98c5c1b92be4a64874d7bd0303912ee6edd918 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 3 Feb 2013 10:46:06 +0100 Subject: [PATCH] postgresql plugin: Fix cast (was breaking aliasing rules). postgresql.c: In function 'c_psql_flush': postgresql.c:974: warning: dereferencing type-punned pointer will break strict-aliasing rules --- src/postgresql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/postgresql.c b/src/postgresql.c index e7b247e7..98ceb6d3 100644 --- a/src/postgresql.c +++ b/src/postgresql.c @@ -971,7 +971,7 @@ static int c_psql_flush (cdtime_t timeout, size_t i; if ((ud != NULL) && (ud->data != NULL)) { - dbs = (c_psql_database_t **)&ud->data; + dbs = (void *)&ud->data; dbs_num = 1; } -- 2.30.2