add -Wpointer-arith -Wcast-qual -Wcast-align and others to compile flags, and fix...
[ardour.git] / libs / gtkmm2ext / gtkmm2ext / gtk_ui.h
index 40137bbbb7a719effd331bf67aca400e086c1b0c..64176232f05f4a2f36d2cba695fb64217a9e202d 100644 (file)
@@ -83,7 +83,7 @@ struct UIRequest : public BaseUI::BaseRequestObject {
     ~UIRequest () { 
            if (type == ErrorMessage && msg) {
                    /* msg was strdup()'ed */
-                   free ((char *)msg);
+                   free (const_cast<char *>(msg));
            }
     }
 };