Skip to content

Commit

Permalink
Annotate for -Wunused-parameter, add -Wextra
Browse files Browse the repository at this point in the history
Useful during development.
  • Loading branch information
Lekensteyn committed Aug 10, 2015
1 parent 2aeffbd commit 26698ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ clean:
rm -f libgobject-list.so $(OBJS)

%.o: %.c
$(CC) -fPIC -rdynamic -g -c -Wall ${FLAGS} ${BUILD_OPTIONS} $<
$(CC) -fPIC -rdynamic -g -c -Wall -Wextra ${FLAGS} ${BUILD_OPTIONS} $<

libgobject-list.so: $(OBJS)
ifeq ($(HAVE_LIBUNWIND), 1)
Expand Down
6 changes: 3 additions & 3 deletions gobject-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ _dump_object_list (GHashTable *hash)
}

static void
_sig_usr1_handler (int signal)
_sig_usr1_handler (G_GNUC_UNUSED int signal)
{
g_print ("Living Objects:\n");

Expand All @@ -209,7 +209,7 @@ _sig_usr1_handler (int signal)
}

static void
_sig_usr2_handler (int signal)
_sig_usr2_handler (G_GNUC_UNUSED int signal)
{
GHashTableIter iter;
gpointer obj, type;
Expand Down Expand Up @@ -315,7 +315,7 @@ get_func (const char *func_name)
}

static void
_object_finalized (gpointer data,
_object_finalized (G_GNUC_UNUSED gpointer data,
GObject *obj)
{
G_LOCK (gobject_list);
Expand Down

0 comments on commit 26698ea

Please sign in to comment.