mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
use G_GNUC_UNUSED macro to fix unused variable warnings
This commit is contained in:
parent
cf2b762af0
commit
46dd20b050
2 changed files with 3 additions and 12 deletions
|
@ -15,11 +15,7 @@
|
||||||
#include "torrent-inspector.h"
|
#include "torrent-inspector.h"
|
||||||
#include "img_icon_full.h"
|
#include "img_icon_full.h"
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#define UNUSED G_GNUC_UNUSED
|
||||||
#define UNUSED __attribute__((unused))
|
|
||||||
#else
|
|
||||||
#define UNUSED
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern void doAction (const char * action_name, gpointer user_data );
|
extern void doAction (const char * action_name, gpointer user_data );
|
||||||
|
|
||||||
|
|
|
@ -29,13 +29,8 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
/* macro to shut up "unused parameter" warnings */
|
/* macro to shut up "unused parameter" warnings */
|
||||||
#ifdef __GNUC__
|
#define SHUTUP G_GNUC_UNUSED
|
||||||
#define SHUTUP __attribute__((unused))
|
#define UNUSED G_GNUC_UNUSED
|
||||||
#define UNUSED __attribute__((unused))
|
|
||||||
#else
|
|
||||||
#define SHUTUP
|
|
||||||
#define UNUSED
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* NULL-safe version of strcmp */
|
/* NULL-safe version of strcmp */
|
||||||
int tr_strcmp( const char*, const char * );
|
int tr_strcmp( const char*, const char * );
|
||||||
|
|
Loading…
Reference in a new issue