1
0
forked from 0ad/0ad

more L4 warnings stomped

This was SVN commit r585.
This commit is contained in:
janwas 2004-06-22 13:22:46 +00:00
parent fc476e04f6
commit fd701dc5d9
12 changed files with 13 additions and 14 deletions

View File

@ -9,7 +9,7 @@
#include "CLogger.h"
const char* SupportedTextureFormats[] = { ".png", ".dds", ".tga", ".bmp" };
static const char* SupportedTextureFormats[] = { ".png", ".dds", ".tga", ".bmp" };

View File

@ -15,4 +15,4 @@ extern int cpu_smp;
#ifdef __cplusplus
}
#endif
#endif

View File

@ -14,4 +14,4 @@ extern char gfx_drv_ver[64]; // default: ""
// attempt to detect graphics card without OpenGL (in case ogl init fails,
// or we want more detailed info). gfx_card[] is unchanged on failure.
extern void get_gfx_info();
extern void get_gfx_info();

View File

@ -141,10 +141,10 @@ enum LibError
// more descriptive error message, but may cause a struct redefinition
// warning if used from the same line in different files.
#define cassert(expr) struct UID__ { int CASSERT_FAILURE: (expr); };
#define cassert(expr) struct UID__ { int CASSERT_FAILURE: (expr); }
// less helpful error message, but redefinition doesn't trigger warnings.
#define cassert2(expr) extern char CASSERT_FAILURE[1][(expr)];
#define cassert2(expr) extern char CASSERT_FAILURE[1][(expr)]
// note: alternative method in C++: specialize a struct only for true;
// using it will raise 'incomplete type' errors if instantiated with false.

View File

@ -73,7 +73,7 @@ BasicType;
// can't skip the dbghelp.h function prototypes, so we need to
// name the function pointers differently (prepend _). Grr.
//
#define FUNC(ret, name, params) ret (WINAPI *_##name) params;
#define FUNC(ret, name, params) static ret (WINAPI *_##name) params;
#include "dbghelp_funcs.h"
#undef FUNC

View File

@ -34,7 +34,7 @@ typedef struct ImgDelayDescr {
typedef const ImgDelayDescr * PCImgDelayDescr;
enum DLAttr { // Delay Load Attributes
dlattrRva = 0x1, // RVAs are used instead of pointers
dlattrRva = 0x1 // RVAs are used instead of pointers
// Having this set indicates a VC7.0
// and above delay load descriptor.
};
@ -54,7 +54,7 @@ enum {
// returning a valid HMODULE
dliFailGetProc, // failed to get proc address, fix it by
// returning a valid FARPROC
dliNoteEndProcessing, // called after all processing is done, no
dliNoteEndProcessing // called after all processing is done, no
// no bypass possible at this point except
// by longjmp()/throw()/RaiseException.
};

View File

@ -17,4 +17,4 @@ struct DllLoadNotify
};
#define WDLL_LOAD_NOTIFY(dll_name, func)\
static DllLoadNotify func##_NOTIFY(dll_name, func);
static DllLoadNotify func##_NOTIFY(dll_name, func)

View File

@ -99,7 +99,7 @@ JSBool JSI_Vector3D::setProperty( JSContext* cx, JSObject* obj, jsval id, jsval*
if( vectorInfo->owner && vectorInfo->updateFn ) ( (vectorInfo->owner)->*(vectorInfo->updateFn) )();
return( JS_TRUE );
return( JS_FALSE );
return( JS_FALSE ); // janwas: which one is it? :)
}
JSBool JSI_Vector3D::construct( JSContext* cx, JSObject* obj, uintN argc, jsval* argv, jsval* rval )

View File

@ -44,7 +44,7 @@ namespace JSI_Vector3D
void finalize( JSContext* cx, JSObject* obj );
JSBool construct( JSContext* cx, JSObject* obj, uintN argc, jsval* argv, jsval* rval );
void init();
};
}
#endif

View File

@ -25,6 +25,6 @@ namespace JSI_BaseEntity
JSBool setProperty( JSContext* cx, JSObject* obj, jsval id, jsval* vp );
void finalize( JSContext* cx, JSObject* obj );
void init();
};
}
#endif

View File

@ -26,6 +26,6 @@ namespace JSI_Entity
JSBool construct( JSContext* cx, JSObject* obj, unsigned int argc, jsval* argv, jsval* rval );
void finalize( JSContext* cx, JSObject* obj );
void init();
};
}
#endif

View File

@ -30,7 +30,6 @@ CLightEnv g_LightEnv;
float g_CameraZoom = 10;
const int NUM_ALPHA_MAPS = 13;
const float ViewScrollSpeed = 60;
const float ViewRotateSensitivity = 0.002f;
const float ViewDragSensitivity = 0.5f;