add -Wpointer-arith -Wcast-qual -Wcast-align and others to compile flags, and fix const cast warnings generated by new flags

git-svn-id: svn://localhost/ardour2/branches/3.0@13124 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-08-10 15:57:09 +00:00
parent 69ca705286
commit 760ccbabfb
16 changed files with 37 additions and 24 deletions

View file

@ -3112,8 +3112,8 @@ Editor::convert_drop_to_paths (
const char* q;
p = (const char *) malloc (txt.length() + 1);
txt.copy ((char *) p, txt.length(), 0);
((char*)p)[txt.length()] = '\0';
txt.copy (const_cast<char *> (p), txt.length(), 0);
const_cast<char*>(p)[txt.length()] = '\0';
while (p)
{