Some more trivial warning fixes
This commit is contained in:
parent
82588b0daf
commit
306c58e7ed
@ -101,7 +101,7 @@ public:
|
||||
inline double getFriction() const { return _friction; }
|
||||
inline const char *getFrictionString() const { return _friction_string; }
|
||||
inline const char *getComment() const { return _comment; }
|
||||
inline const bool getWindShear() const { return _wind_shear; }
|
||||
inline bool getWindShear() const { return _wind_shear; }
|
||||
inline const SGMetarVisibility& getMinVisibility() const { return _min_visibility; }
|
||||
inline const SGMetarVisibility& getMaxVisibility() const { return _max_visibility; }
|
||||
|
||||
@ -188,7 +188,7 @@ public:
|
||||
|
||||
inline const char *getData() const { return _data; }
|
||||
inline const char *getUnusedData() const { return _m; }
|
||||
inline const bool getProxy() const { return _x_proxy; }
|
||||
inline bool getProxy() const { return _x_proxy; }
|
||||
inline const char *getId() const { return _icao; }
|
||||
inline int getYear() const { return _year; }
|
||||
inline int getMonth() const { return _month; }
|
||||
|
@ -97,7 +97,7 @@ public:
|
||||
return (_max[0] - _min[0])*(_max[1] - _min[1])*(_max[2] - _min[2]);
|
||||
}
|
||||
|
||||
const bool empty() const
|
||||
bool empty() const
|
||||
{ return !valid(); }
|
||||
|
||||
bool valid() const
|
||||
|
@ -40,7 +40,7 @@ extern "C" {
|
||||
* Structure to hold MT algorithm state to easily allow independant
|
||||
* sets of random numbers with different seeds.
|
||||
*/
|
||||
struct {unsigned int array[MT_N]; int index; } typedef mt;
|
||||
typedef struct {unsigned int array[MT_N]; int index; } mt;
|
||||
|
||||
/**
|
||||
* Initialize a new MT state with a given seed.
|
||||
|
@ -408,7 +408,7 @@ void trBeginTile(TRcontext *tr)
|
||||
{
|
||||
GLint matrixMode;
|
||||
GLint tileWidth, tileHeight, border;
|
||||
GLdouble left, right, bottom, top;
|
||||
// GLdouble left, right, bottom, top;
|
||||
|
||||
if (!tr)
|
||||
return;
|
||||
@ -459,7 +459,9 @@ void trBeginTile(TRcontext *tr)
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
|
||||
// OSGFIXME
|
||||
/* compute projection parameters */
|
||||
/*
|
||||
left = tr->Left + (tr->Right - tr->Left)
|
||||
* (tr->CurrentColumn * tr->TileWidthNB - border) / tr->ImageWidth;
|
||||
right = left + (tr->Right - tr->Left) * tileWidth / tr->ImageWidth;
|
||||
@ -467,8 +469,8 @@ void trBeginTile(TRcontext *tr)
|
||||
* (tr->CurrentRow * tr->TileHeightNB - border) / tr->ImageHeight;
|
||||
top = bottom + (tr->Top - tr->Bottom) * tileHeight / tr->ImageHeight;
|
||||
|
||||
// OSGFIXME
|
||||
// ssgSetFrustum ( left, right, bottom, top, tr->Near, tr->Far );
|
||||
ssgSetFrustum ( left, right, bottom, top, tr->Near, tr->Far );
|
||||
*/
|
||||
|
||||
/* restore user's matrix mode */
|
||||
glMatrixMode( (GLenum)matrixMode );
|
||||
|
@ -911,7 +911,7 @@ void XML_DefaultCurrent(XML_Parser parser)
|
||||
}
|
||||
}
|
||||
|
||||
const XML_LChar *XML_ErrorString(int code)
|
||||
const XML_LChar *XML_ErrorString(size_t code)
|
||||
{
|
||||
static const XML_LChar *message[] = {
|
||||
0,
|
||||
|
@ -473,7 +473,7 @@ void XMLPARSEAPI
|
||||
XML_ParserFree(XML_Parser parser);
|
||||
|
||||
/* Returns a string describing the error. */
|
||||
const XML_LChar XMLPARSEAPI *XML_ErrorString(int code);
|
||||
const XML_LChar XMLPARSEAPI *XML_ErrorString(size_t code);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user