[poppler] poppler/poppler: OutputDev.h,1.3,1.4 Stream.h,1.6,1.7

Albert Astals Cid aacid at freedesktop.org
Tue Nov 1 07:29:34 PST 2005


Update of /cvs/poppler/poppler/poppler
In directory gabe:/tmp/cvs-serv19997/poppler

Modified Files:
	OutputDev.h Stream.h 
Log Message:
Comment some unused parameters to calm down compiler warnings when using these heders on external projects with higher warning verbosity


Index: OutputDev.h
===================================================================
RCS file: /cvs/poppler/poppler/poppler/OutputDev.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- OutputDev.h	30 Oct 2005 20:29:05 -0000	1.3
+++ OutputDev.h	1 Nov 2005 15:29:32 -0000	1.4
@@ -17,6 +17,7 @@
 #include "goo/gtypes.h"
 #include "CharTypes.h"
 
+class Dict;
 class GooHash;
 class GooString;
 class GfxState;
@@ -74,7 +75,7 @@
   virtual void setDefaultCTM(double *ctm);
 
   // Start a page.
-  virtual void startPage(int pageNum, GfxState *state) {}
+  virtual void startPage(int /*pageNum*/, GfxState * /*state*/) {}
 
   // End a page.
   virtual void endPage() {}
@@ -92,76 +93,76 @@
   double *getDefICTM() { return defICTM; }
 
   //----- link borders
-  virtual void drawLink(Link *link, Catalog *catalog) {}
+  virtual void drawLink(Link * /*link*/, Catalog * /*catalog*/) {}
 
   //----- save/restore graphics state
-  virtual void saveState(GfxState *state) {}
-  virtual void restoreState(GfxState *state) {}
+  virtual void saveState(GfxState * /*state*/) {}
+  virtual void restoreState(GfxState * /*state*/) {}
 
   //----- update graphics state
   virtual void updateAll(GfxState *state);
-  virtual void updateCTM(GfxState *state, double m11, double m12,
-			 double m21, double m22, double m31, double m32) {}
-  virtual void updateLineDash(GfxState *state) {}
-  virtual void updateFlatness(GfxState *state) {}
-  virtual void updateLineJoin(GfxState *state) {}
-  virtual void updateLineCap(GfxState *state) {}
-  virtual void updateMiterLimit(GfxState *state) {}
-  virtual void updateLineWidth(GfxState *state) {}
-  virtual void updateFillColorSpace(GfxState *state) {}
-  virtual void updateStrokeColorSpace(GfxState *state) {}
-  virtual void updateFillColor(GfxState *state) {}
-  virtual void updateStrokeColor(GfxState *state) {}
-  virtual void updateBlendMode(GfxState *state) {}
-  virtual void updateFillOpacity(GfxState *state) {}
-  virtual void updateStrokeOpacity(GfxState *state) {}
-  virtual void updateFillOverprint(GfxState *state) {}
-  virtual void updateStrokeOverprint(GfxState *state) {}
+  virtual void updateCTM(GfxState * /*state*/, double /*m11*/, double /*m12*/,
+			 double /*m21*/, double /*m22*/, double /*m31*/, double /*m32*/) {}
+  virtual void updateLineDash(GfxState * /*state*/) {}
+  virtual void updateFlatness(GfxState * /*state*/) {}
+  virtual void updateLineJoin(GfxState * /*state*/) {}
+  virtual void updateLineCap(GfxState * /*state*/) {}
+  virtual void updateMiterLimit(GfxState * /*state*/) {}
+  virtual void updateLineWidth(GfxState * /*state*/) {}
+  virtual void updateFillColorSpace(GfxState * /*state*/) {}
+  virtual void updateStrokeColorSpace(GfxState * /*state*/) {}
+  virtual void updateFillColor(GfxState * /*state*/) {}
+  virtual void updateStrokeColor(GfxState * /*state*/) {}
+  virtual void updateBlendMode(GfxState * /*state*/) {}
+  virtual void updateFillOpacity(GfxState * /*state*/) {}
+  virtual void updateStrokeOpacity(GfxState * /*state*/) {}
+  virtual void updateFillOverprint(GfxState * /*state*/) {}
+  virtual void updateStrokeOverprint(GfxState * /*state*/) {}
 
   //----- update text state
-  virtual void updateFont(GfxState *state) {}
-  virtual void updateTextMat(GfxState *state) {}
-  virtual void updateCharSpace(GfxState *state) {}
-  virtual void updateRender(GfxState *state) {}
-  virtual void updateRise(GfxState *state) {}
-  virtual void updateWordSpace(GfxState *state) {}
-  virtual void updateHorizScaling(GfxState *state) {}
-  virtual void updateTextPos(GfxState *state) {}
-  virtual void updateTextShift(GfxState *state, double shift) {}
+  virtual void updateFont(GfxState * /*state*/) {}
+  virtual void updateTextMat(GfxState * /*state*/) {}
+  virtual void updateCharSpace(GfxState * /*state*/) {}
+  virtual void updateRender(GfxState * /*state*/) {}
+  virtual void updateRise(GfxState * /*state*/) {}
+  virtual void updateWordSpace(GfxState * /*state*/) {}
+  virtual void updateHorizScaling(GfxState * /*state*/) {}
+  virtual void updateTextPos(GfxState * /*state*/) {}
+  virtual void updateTextShift(GfxState * /*state*/, double /*shift*/) {}
 
   //----- path painting
-  virtual void stroke(GfxState *state) {}
-  virtual void fill(GfxState *state) {}
-  virtual void eoFill(GfxState *state) {}
-  virtual void tilingPatternFill(GfxState *state, Object *str,
-				 int paintType, Dict *resDict,
-				 double *mat, double *bbox,
-				 int x0, int y0, int x1, int y1,
-				 double xStep, double yStep) {}
-  virtual void functionShadedFill(GfxState *state,
-				  GfxFunctionShading *shading) {}
-  virtual void axialShadedFill(GfxState *state, GfxAxialShading *shading) {}
-  virtual void radialShadedFill(GfxState *state, GfxRadialShading *shading) {}
+  virtual void stroke(GfxState * /*state*/) {}
+  virtual void fill(GfxState * /*state*/) {}
+  virtual void eoFill(GfxState * /*state*/) {}
+  virtual void tilingPatternFill(GfxState * /*state*/, Object * /*str*/,
+				 int /*paintType*/, Dict * /*resDict*/,
+				 double * /*mat*/, double * /*bbox*/,
+				 int /*x0*/, int /*y0*/, int /*x1*/, int /*y1*/,
+				 double /*xStep*/, double /*yStep*/) {}
+  virtual void functionShadedFill(GfxState * /*state*/,
+				  GfxFunctionShading * /*shading*/) {}
+  virtual void axialShadedFill(GfxState * /*state*/, GfxAxialShading * /*shading*/) {}
+  virtual void radialShadedFill(GfxState * /*state*/, GfxRadialShading * /*shading*/) {}
 
   //----- path clipping
-  virtual void clip(GfxState *state) {}
-  virtual void eoClip(GfxState *state) {}
+  virtual void clip(GfxState * /*state*/) {}
+  virtual void eoClip(GfxState * /*state*/) {}
 
   //----- text drawing
-  virtual void beginStringOp(GfxState *state) {}
-  virtual void endStringOp(GfxState *state) {}
-  virtual void beginString(GfxState *state, GooString *s) {}
-  virtual void endString(GfxState *state) {}
-  virtual void drawChar(GfxState *state, double x, double y,
-			double dx, double dy,
-			double originX, double originY,
-			CharCode code, int nBytes, Unicode *u, int uLen) {}
-  virtual void drawString(GfxState *state, GooString *s) {}
-  virtual GBool beginType3Char(GfxState *state, double x, double y,
-			       double dx, double dy,
-			       CharCode code, Unicode *u, int uLen);
-  virtual void endType3Char(GfxState *state) {}
-  virtual void endTextObject(GfxState *state) {}
+  virtual void beginStringOp(GfxState * /*state*/) {}
+  virtual void endStringOp(GfxState * /*state*/) {}
+  virtual void beginString(GfxState * /*state*/, GooString * /*s*/) {}
+  virtual void endString(GfxState * /*state*/) {}
+  virtual void drawChar(GfxState * /*state*/, double /*x*/, double /*y*/,
+			double /*dx*/, double /*dy*/,
+			double /*originX*/, double /*originY*/,
+			CharCode /*code*/, int /*nBytes*/, Unicode * /*u*/, int /*uLen*/) {}
+  virtual void drawString(GfxState * /*state*/, GooString * /*s*/) {}
+  virtual GBool beginType3Char(GfxState * /*state*/, double /*x*/, double /*y*/,
+			       double /*dx*/, double /*dy*/,
+			       CharCode /*code*/, Unicode * /*u*/, int /*uLen*/);
+  virtual void endType3Char(GfxState * /*state*/) {}
+  virtual void endTextObject(GfxState * /*state*/) {}
 
   //----- image drawing
   virtual void drawImageMask(GfxState *state, Object *ref, Stream *str,
@@ -189,12 +190,12 @@
 #endif
 
   //----- Type 3 font operators
-  virtual void type3D0(GfxState *state, double wx, double wy) {}
-  virtual void type3D1(GfxState *state, double wx, double wy,
-		       double llx, double lly, double urx, double ury) {}
+  virtual void type3D0(GfxState * /*state*/, double /*wx*/, double /*wy*/) {}
+  virtual void type3D1(GfxState * /*state*/, double /*wx*/, double /*wy*/,
+		       double /*llx*/, double /*lly*/, double /*urx*/, double /*ury*/) {}
 
   //----- PostScript XObjects
-  virtual void psXObject(Stream *psStream, Stream *level1Stream) {}
+  virtual void psXObject(Stream * /*psStream*/, Stream * /*level1Stream*/) {}
 
   //----- Profiling
   virtual void startProfile();

Index: Stream.h
===================================================================
RCS file: /cvs/poppler/poppler/poppler/Stream.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Stream.h	16 Oct 2005 15:04:39 -0000	1.6
+++ Stream.h	1 Nov 2005 15:29:32 -0000	1.7
@@ -106,8 +106,8 @@
   virtual GBool isEncoder() { return gFalse; }
 
   // Get image parameters which are defined by the stream contents.
-  virtual void getImageParams(int *bitsPerComponent,
-			      StreamColorSpaceMode *csMode) {}
+  virtual void getImageParams(int * /*bitsPerComponent*/,
+			      StreamColorSpaceMode * /*csMode*/) {}
 
   // Add filters to this stream according to the parameters in <dict>.
   // Returns the new stream.
@@ -725,8 +725,8 @@
   virtual void reset() {}
   virtual int getChar() { return EOF; }
   virtual int lookChar() { return EOF; }
-  virtual GooString *getPSFilter(int psLevel, char *indent)  { return NULL; }
-  virtual GBool isBinary(GBool last = gTrue) { return gFalse; }
+  virtual GooString *getPSFilter(int /*psLevel*/, char * /*indent*/)  { return NULL; }
+  virtual GBool isBinary(GBool /*last = gTrue*/) { return gFalse; }
 };
 
 //------------------------------------------------------------------------
@@ -742,8 +742,8 @@
   virtual void reset();
   virtual int getChar();
   virtual int lookChar();
-  virtual GooString *getPSFilter(int psLevel, char *indent) { return NULL; }
-  virtual GBool isBinary(GBool last = gTrue);
+  virtual GooString *getPSFilter(int /*psLevel*/, char * /*indent*/) { return NULL; }
+  virtual GBool isBinary(GBool /*last = gTrue*/);
   virtual GBool isEncoder() { return gTrue; }
 
 private:
@@ -767,8 +767,8 @@
     { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr++ & 0xff); }
   virtual int lookChar()
     { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr & 0xff); }
-  virtual GooString *getPSFilter(int psLevel, char *indent) { return NULL; }
-  virtual GBool isBinary(GBool last = gTrue) { return gFalse; }
+  virtual GooString *getPSFilter(int /*psLevel*/, char * /*indent*/) { return NULL; }
+  virtual GBool isBinary(GBool /*last = gTrue*/) { return gFalse; }
   virtual GBool isEncoder() { return gTrue; }
 
 private:
@@ -797,8 +797,8 @@
     { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr++ & 0xff); }
   virtual int lookChar()
     { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr & 0xff); }
-  virtual GooString *getPSFilter(int psLevel, char *indent) { return NULL; }
-  virtual GBool isBinary(GBool last = gTrue) { return gFalse; }
+  virtual GooString *getPSFilter(int /*psLevel*/, char * /*indent*/) { return NULL; }
+  virtual GBool isBinary(GBool /*last = gTrue*/) { return gFalse; }
   virtual GBool isEncoder() { return gTrue; }
 
 private:
@@ -827,8 +827,8 @@
     { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr++ & 0xff); }
   virtual int lookChar()
     { return (bufPtr >= bufEnd && !fillBuf()) ? EOF : (*bufPtr & 0xff); }
-  virtual GooString *getPSFilter(int psLevel, char *indent) { return NULL; }
-  virtual GBool isBinary(GBool last = gTrue) { return gTrue; }
+  virtual GooString *getPSFilter(int /*psLevel*/, char * /*indent*/) { return NULL; }
+  virtual GBool isBinary(GBool /*last = gTrue*/) { return gTrue; }
   virtual GBool isEncoder() { return gTrue; }
 
 private:



More information about the poppler mailing list