From: <ai...@us...> - 2013-12-17 05:32:21
|
Revision: 12874 http://sourceforge.net/p/plplot/code/12874 Author: airwin Date: 2013-12-17 05:32:16 +0000 (Tue, 17 Dec 2013) Log Message: ----------- Turn cast from "const char *" to "char *" from implicit (which in the psttf.cc case ended up as a build error) to explicit form. This build error was found as a result of running the comprehensive_test.sh script, but as far as I can tell nothing was changed for psttf.cc from when this script ran without errors not that long ago for exactly the same (normal build as opposed to epa_build) environment. So I do not have a clue why we suddenly have this build error, but I have now fixed it with the explicit casts. Modified Paths: -------------- trunk/drivers/ps.c trunk/drivers/psttf.cc Modified: trunk/drivers/ps.c =================================================================== --- trunk/drivers/ps.c 2013-12-17 01:27:14 UTC (rev 12873) +++ trunk/drivers/ps.c 2013-12-17 05:32:16 UTC (rev 12874) @@ -94,8 +94,8 @@ int type, int seq, plD_init_fp init ) { #ifndef ENABLE_DYNDRIVERS - pdt->pl_MenuStr = menustr; - pdt->pl_DevName = devnam; + pdt->pl_MenuStr = (char *) menustr; + pdt->pl_DevName = (char *) devnam; #else (void) menustr; // Cast to void to silence compiler warnings about unused parameters (void) devnam; Modified: trunk/drivers/psttf.cc =================================================================== --- trunk/drivers/psttf.cc 2013-12-17 01:27:14 UTC (rev 12873) +++ trunk/drivers/psttf.cc 2013-12-17 05:32:16 UTC (rev 12874) @@ -125,8 +125,8 @@ int type, int seq, plD_init_fp init ) { #ifndef ENABLE_DYNDRIVERS - pdt->pl_MenuStr = menustr; - pdt->pl_DevName = devnam; + pdt->pl_MenuStr = (char *) menustr; + pdt->pl_DevName = (char *) devnam; #else (void) menustr; // Cast to void to silence compiler warnings about unused parameters (void) devnam; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |