From f63d33c0035ca5b6ced51ca2888ea612ef4a7dbc Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 16 Dec 2008 12:23:30 +0000 Subject: [PATCH] Fixed warnings --- src/osgPlugins/txp/trpage_geom.h | 6 +++--- src/osgPlugins/txp/trpage_print.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/osgPlugins/txp/trpage_geom.h b/src/osgPlugins/txp/trpage_geom.h index 6ed6b6046..21e7d527b 100644 --- a/src/osgPlugins/txp/trpage_geom.h +++ b/src/osgPlugins/txp/trpage_geom.h @@ -591,7 +591,7 @@ TX_EXDECL class TX_CLDECL trpgLightAttr : public trpgReadWriteable } LightQuality; // Struct for Performer Lights - typedef struct PerformerAttr + struct PerformerAttr { PerformerAttr() : flags(0),minPixelSize(0),maxPixelSize(0),actualSize(0), transparentPixelSize(0),transparentFallofExp(0),transparentScale(0), @@ -608,7 +608,7 @@ TX_EXDECL class TX_CLDECL trpgLightAttr : public trpgReadWriteable }; // Struct for Animated Lights - typedef struct AnimationAttr + struct AnimationAttr { AnimationAttr() : period(0),phaseDelay(0),timeOn(0),vector(trpg3dPoint(0,0,0)),flags(0) {}; float64 period; @@ -619,7 +619,7 @@ TX_EXDECL class TX_CLDECL trpgLightAttr : public trpgReadWriteable }; // Struct for Calligraphic Lights - typedef struct CalligraphicAttr + struct CalligraphicAttr { CalligraphicAttr() : drawOrder(0),minDefocus(0),maxDefocus(0) {} ; int32 drawOrder; diff --git a/src/osgPlugins/txp/trpage_print.cpp b/src/osgPlugins/txp/trpage_print.cpp index 2b3e776b5..a44bfaa8c 100644 --- a/src/osgPlugins/txp/trpage_print.cpp +++ b/src/osgPlugins/txp/trpage_print.cpp @@ -100,8 +100,8 @@ bool trpgFilePrintBuffer::prnLine(const char *str) if (str) { - fprintf(fp,indentStr); - fprintf(fp,str); + fprintf(fp,"%s",indentStr); + fprintf(fp,"%s",str); fprintf(fp,"\n"); } else fprintf(fp,"\n");