From 020605f4a19f4b80d84c1817d9ae3cb33682d5ce Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 16 Nov 2010 18:36:47 +0000 Subject: [PATCH] Don't forget the QUICKLAUNCH guards Compiling this code with CFLAGS="-ffunction-sections -fdata-sections" and LDFLAGS="-Wl,--as-needed -Wl,--gc-sections -Wl,--print-gc-sections" was giving me the following messages: /usr/bin/ld: Removing unused section '.text._on_key_down' in file 'elementary_testql-test_focus.o' /usr/bin/ld: Removing unused section '.text.my_show' in file 'elementary_testql-test_focus.o' /usr/bin/ld: Removing unused section '.rodata' in file 'elementary_testql-test_focus.o' /usr/bin/ld: Removing unused section '.text.test_focus' in file 'elementary_testql-test_focus.o' The issue was the missing guards. SVN revision: 54600 --- legacy/elementary/src/bin/test_focus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/bin/test_focus.c b/legacy/elementary/src/bin/test_focus.c index 4ee4916ac7..fb66ac0e42 100644 --- a/legacy/elementary/src/bin/test_focus.c +++ b/legacy/elementary/src/bin/test_focus.c @@ -3,6 +3,7 @@ #ifdef HAVE_CONFIG_H # include "elementary_config.h" #endif +#ifndef ELM_LIB_QUICKLAUNCH static void _on_key_down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *einfo __UNUSED__) @@ -327,4 +328,4 @@ test_focus(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info } } } - +#endif