svn commit: r277860 - head/usr.sbin/sa

2015-01-28 Thread Dimitry Andric
Author: dim Date: Wed Jan 28 22:22:49 2015 New Revision: 277860 URL: https://svnweb.freebsd.org/changeset/base/277860 Log: Fix the following -Wcast-qual warnings in usr.sbin/sa/db.c: usr.sbin/sa/db.c:82:20: error: cast from 'char const (*)[9]' to 'void *' drops const qualifier [-Werror,-Wc

Re: svn commit: r277860 - head/usr.sbin/sa

2015-01-29 Thread John-Mark Gurney
Dimitry Andric wrote this message on Wed, Jan 28, 2015 at 22:22 +: > Replace the VERSION_KEY define with a writable char array, so no const > qualifier needs to be dropped anymore. You do realize that you should juse use __DECONST for this instead? This moves the data from .rodata into .d

Re: svn commit: r277860 - head/usr.sbin/sa

2015-01-29 Thread Dimitry Andric
On 29 Jan 2015, at 09:23, John-Mark Gurney wrote: > > Dimitry Andric wrote this message on Wed, Jan 28, 2015 at 22:22 +: >> Replace the VERSION_KEY define with a writable char array, so no const >> qualifier needs to be dropped anymore. > > You do realize that you should juse use __DECONST