Thanks, I also encountered this error recently while compiling on conda - the fix will be in the GPlates repository soon.
This should be fine for this error (since CSLConstList just adds some const to char **). This situation is a good use case for this, but yes, in general I’d be wary of using that compiler flag.