From: <dg...@su...> - 2009-01-04 21:24:06
|
Author: dgollub Date: Sun Jan 4 22:23:44 2009 New Revision: 4999 URL: http://www.opensync.org/changeset/4999 Log: Introduce OSYNC_UNUSED to suppress warnings about unused functions. This is only internally and should only be used for temporarily disabled code. Modified: trunk/opensync/opensync_internals.h Modified: trunk/opensync/opensync_internals.h ============================================================================== --- trunk/opensync/opensync_internals.h Sun Jan 4 22:22:20 2009 (r4998) +++ trunk/opensync/opensync_internals.h Sun Jan 4 22:23:44 2009 (r4999) @@ -35,7 +35,6 @@ extern int errno; #endif - #define osync_return_if_fail(condition) do { \ if (!(condition)) { \ return; \ @@ -46,6 +45,13 @@ return (val); \ } } while (0) + +#ifdef __GNUC__ +#define OSYNC_UNUSED __attribute__ ((unused)) +#else +#define OSYNC_UNUSED +#endif + #include "opensync/common/opensync_common_internals.h" #endif /* OPENSYNC_INTERNALS_H_ */ |