Warn about setting read only variables (bug #3309)