diff --git a/source/rofi.c b/source/rofi.c index 8db4555f..87828fec 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -120,7 +120,7 @@ static int switcher_get ( const char *name ) return -1; } -void catch_exit ( __attribute__( ( unused ) ) int sig ) +void catch_exit ( G_GNUC_UNUSED int sig ) { while ( 0 < waitpid ( -1, NULL, WNOHANG ) ) { ; diff --git a/source/xrmoptions.c b/source/xrmoptions.c index b09264bc..7ca9d768 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -45,7 +45,7 @@ typedef struct char ** str; void *pointer; char * charc; - } value; + } value; char *mem; } XrmOption; /** @@ -115,8 +115,8 @@ void config_parser_add_option ( XrmOptionType type, const char *key, void **valu { extra_options = g_realloc ( extra_options, ( num_extra_options + 1 ) * sizeof ( XrmOption ) ); - extra_options[num_extra_options].type = type; - extra_options[num_extra_options].name = key; + extra_options[num_extra_options].type = type; + extra_options[num_extra_options].name = key; extra_options[num_extra_options].value.pointer = value; if ( type == xrm_String ) { extra_options[num_extra_options].mem = ( (char *) ( *value ) );