Fix string literal to char* conversion error in UnitDefs.c
Description
When making in lal, I get errors like:
make[4]: Entering directory `/home/vijay/src/lalsuite_vijay/lal/lib/tools'
CC UnitDefs.lo
UnitDefs.c(300): error #3179: deprecated conversion of string literal to char* (should be const char*)
const char *delim = (s != string) ? " " : "";
This doesn't happen for me on CIT, only on a different Caltech machine.
Anyway, this MR should resolve the problem for all machines.
API Changes and Justification
Backwards Compatible Changes
-
This change introduces no API changes -
This change adds new API calls
Backwards Incompatible Changes
-
This change modifies an existing API -
This change removes an existing API
If any of the Backwards Incompatible check boxes are ticked please provide a justification why this change is necessary and why it needs to be done in a backwards incompatible way.
Review Status
Please provide details on any reviews related to this change and and the associated reviewers.