mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-24 22:34:29 +02:00
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:
parent
569f053101
commit
44c5a93bdb
@ -253,14 +253,7 @@ typedef VOID (FAR ASMCFUNC * intvec) (void);
|
|||||||
unreferenced parameter 'x'
|
unreferenced parameter 'x'
|
||||||
and (hopefully) generates no code
|
and (hopefully) generates no code
|
||||||
*/
|
*/
|
||||||
|
#define UNREFERENCED_PARAMETER(x) (void)x;
|
||||||
#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
|
|
||||||
|
|
||||||
#ifdef I86 /* commandline overflow - removing /DPROTO TE */
|
#ifdef I86 /* commandline overflow - removing /DPROTO TE */
|
||||||
#define PROTO
|
#define PROTO
|
||||||
|
Loading…
x
Reference in New Issue
Block a user