Commits

Lars Kanis committed 1a25786 Draft

Get rid of gcc warning about (non-)const PGresult to pg_new_result_for_callback()

Comments (0)

Files changed (1)

ext/pg_connection.c

 
 	if ((proc = rb_iv_get(self, "@notice_receiver")) != Qnil) {
 		rb_funcall(proc, rb_intern("call"), 1, 
-			pg_new_result_for_callback(result, self));
+			pg_new_result_for_callback((PGresult *)result, self));
 	}
 	return;
 }