Changeset 2505


Ignore:
Timestamp:
Jul 26, 2007, 5:21:50 PM (15 years ago)
Author:
charles
Message:

use G_GNUC_UNUSED macro to fix unused variable warnings

Location:
trunk/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/actions.c

    r2445 r2505  
    1616#include "img_icon_full.h"
    1717
    18 #ifdef __GNUC__
    19 #define UNUSED __attribute__((unused))
    20 #else
    21 #define UNUSED
    22 #endif
     18#define UNUSED G_GNUC_UNUSED
    2319
    2420extern void doAction (const char * action_name, gpointer user_data );
  • trunk/gtk/util.h

    r2208 r2505  
    3030
    3131/* macro to shut up "unused parameter" warnings */
    32 #ifdef __GNUC__
    33 #define SHUTUP                  __attribute__((unused))
    34 #define UNUSED                  __attribute__((unused))
    35 #else
    36 #define SHUTUP
    37 #define UNUSED
    38 #endif
     32#define SHUTUP G_GNUC_UNUSED
     33#define UNUSED G_GNUC_UNUSED
    3934
    4035/* NULL-safe version of strcmp */
Note: See TracChangeset for help on using the changeset viewer.