New UNREFERENCED_PARAMETER macro that appears to work for all compilers.

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@678 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2003-09-09 17:22:03 +00:00
parent 569f053101
commit 44c5a93bdb

View File

@ -249,18 +249,11 @@ typedef signed long LONG;
typedef VOID (FAR ASMCFUNC * intvec) (void);
/*
this suppresses the warning
this suppresses the warning
unreferenced parameter 'x'
and (hopefully) generates no code
*/
#if defined(__TURBOC__)
#define UNREFERENCED_PARAMETER(x) if (x);
#elif defined(__GNUC__)
#define UNREFERENCED_PARAMETER(x) x = 0;
#else
#define UNREFERENCED_PARAMETER(x) x;
#endif
#define UNREFERENCED_PARAMETER(x) (void)x;
#ifdef I86 /* commandline overflow - removing /DPROTO TE */
#define PROTO