1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

use G_GNUC_UNUSED macro to fix unused variable warnings

This commit is contained in:
Charles Kerr 2007-07-26 17:21:50 +00:00
parent cf2b762af0
commit 46dd20b050
2 changed files with 3 additions and 12 deletions

View file

@ -15,11 +15,7 @@
#include "torrent-inspector.h"
#include "img_icon_full.h"
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
#define UNUSED G_GNUC_UNUSED
extern void doAction (const char * action_name, gpointer user_data );

View file

@ -29,13 +29,8 @@
#include <stdarg.h>
/* macro to shut up "unused parameter" warnings */
#ifdef __GNUC__
#define SHUTUP __attribute__((unused))
#define UNUSED __attribute__((unused))
#else
#define SHUTUP
#define UNUSED
#endif
#define SHUTUP G_GNUC_UNUSED
#define UNUSED G_GNUC_UNUSED
/* NULL-safe version of strcmp */
int tr_strcmp( const char*, const char * );