Skip to content

Commit 26698ea

Browse files
committed
Annotate for -Wunused-parameter, add -Wextra
Useful during development.
1 parent 2aeffbd commit 26698ea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ clean:
1919
rm -f libgobject-list.so $(OBJS)
2020

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

2424
libgobject-list.so: $(OBJS)
2525
ifeq ($(HAVE_LIBUNWIND), 1)

gobject-list.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ _dump_object_list (GHashTable *hash)
199199
}
200200

201201
static void
202-
_sig_usr1_handler (int signal)
202+
_sig_usr1_handler (G_GNUC_UNUSED int signal)
203203
{
204204
g_print ("Living Objects:\n");
205205

@@ -209,7 +209,7 @@ _sig_usr1_handler (int signal)
209209
}
210210

211211
static void
212-
_sig_usr2_handler (int signal)
212+
_sig_usr2_handler (G_GNUC_UNUSED int signal)
213213
{
214214
GHashTableIter iter;
215215
gpointer obj, type;
@@ -315,7 +315,7 @@ get_func (const char *func_name)
315315
}
316316

317317
static void
318-
_object_finalized (gpointer data,
318+
_object_finalized (G_GNUC_UNUSED gpointer data,
319319
GObject *obj)
320320
{
321321
G_LOCK (gobject_list);

0 commit comments

Comments
 (0)