Of course, what I should have written was: Assuming it is valid and does what is required, maybe the following pragma would be more precise.
#pragma GCC diagnostic ignored "-Wcast-qual" Sorry. I did too much cutting and pasting, and not enough thinking. -- Andy.