X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=blobdiff_plain;f=source3%2Finclude%2Fincludes.h;h=fa6fad460504ce40272405cf4fe7b55323fb2fc1;hp=6021ebb83b090654fb43df19d87cfbe7b8a755bb;hb=bb21af13e36d476e52a6151be1d7bbf9ed6e6412;hpb=e4bf9af03cf0b7ff589f3ed67838aa210903cc86 diff --git a/source3/include/includes.h b/source3/include/includes.h index 6021ebb83b0..fa6fad46050 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -2,9 +2,9 @@ #define _INCLUDES_H /* Unix SMB/Netbios implementation. - Version 1.9. Machine customisation and include handling Copyright (C) Andrew Tridgell 1994-1998 + Copyright (C) 2002 by Martin Pool This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -63,6 +63,15 @@ #define PRINTF_ATTRIBUTE(a1, a2) #endif +#ifdef __GNUC__ +/** gcc attribute used on function parameters so that it does not emit + * warnings about them being unused. **/ +# define UNUSED(param) param __attribute__ ((unused)) +#else +# define UNUSED(param) param +/** Feel free to add definitions for other compilers here. */ +#endif + #ifdef RELIANTUNIX /* * has to be included before any other to get