From: <and...@us...> - 2011-10-21 12:34:22
|
Revision: 11998 http://plplot.svn.sourceforge.net/plplot/?rev=11998&view=rev Author: andrewross Date: 2011-10-21 12:34:16 +0000 (Fri, 21 Oct 2011) Log Message: ----------- Fix a few more warnings. Modified Paths: -------------- trunk/include/disptab.h trunk/include/pldebug.h trunk/src/pdfutils.c trunk/src/plshade.c Modified: trunk/include/disptab.h =================================================================== --- trunk/include/disptab.h 2011-10-21 12:03:34 UTC (rev 11997) +++ trunk/include/disptab.h 2011-10-21 12:34:16 UTC (rev 11998) @@ -77,8 +77,8 @@ typedef struct { - const char *pl_MenuStr; - const char *pl_DevName; + char *pl_MenuStr; + char *pl_DevName; int pl_type; int pl_seq; plD_init_fp pl_init; Modified: trunk/include/pldebug.h =================================================================== --- trunk/include/pldebug.h 2011-10-21 12:03:34 UTC (rev 11997) +++ trunk/include/pldebug.h 2011-10-21 12:34:16 UTC (rev 11998) @@ -85,6 +85,9 @@ if ( plsc->termin ) c_plgra(); } +#else + // Avoid warning about unused parameter + (void) label; #endif // DEBUG } #endif // NEED_PLDEBUG Modified: trunk/src/pdfutils.c =================================================================== --- trunk/src/pdfutils.c 2011-10-21 12:03:34 UTC (rev 11997) +++ trunk/src/pdfutils.c 2011-10-21 12:34:16 UTC (rev 11998) @@ -35,7 +35,7 @@ #define NEED_PLDEBUG #include "plplotP.h" -static void print_ieeef( void *, void * ); +static void print_ieeef( float *, U_LONG * ); static int pdf_wrx( const U_CHAR *x, long nitems, PDFstrm *pdfs ); static int debug = 0; @@ -898,10 +898,10 @@ //-------------------------------------------------------------------------- static void -print_ieeef( void *vx, void *vy ) +print_ieeef( float *vx, U_LONG *vy ) { int i; - U_LONG f, *x = (U_LONG *) vx, *y = (U_LONG *) vy; + U_LONG f, *x = (U_LONG *) vx, *y = vy; char bitrep[33]; bitrep[32] = '\0'; Modified: trunk/src/plshade.c =================================================================== --- trunk/src/plshade.c 2011-10-21 12:03:34 UTC (rev 11997) +++ trunk/src/plshade.c 2011-10-21 12:34:16 UTC (rev 11998) @@ -363,7 +363,7 @@ { PLfGrid grid; - grid.f = (PLFLT *) a; + grid.f = a; grid.nx = nx; grid.ny = ny; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |