public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] common: env_common: make env_get_char_spec __weak
@ 2014-07-10 21:27 Jeroen Hofstee
  2014-07-10 21:51 ` Jeroen Hofstee
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jeroen Hofstee @ 2014-07-10 21:27 UTC (permalink / raw)
  To: u-boot

---
yup another clang warning:

common/env_common.c:30:14: warning: unused function '__env_get_char_spec' [-Wunused-function]
static uchar __env_get_char_spec(int index)
             ^
---
 common/env_common.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/common/env_common.c b/common/env_common.c
index cd7b4cd..3b979bc 100644
--- a/common/env_common.c
+++ b/common/env_common.c
@@ -27,12 +27,10 @@ struct hsearch_data env_htab = {
 	.change_ok = env_flags_validate,
 };
 
-static uchar __env_get_char_spec(int index)
+__weak uchar env_get_char_spec(int index)
 {
 	return *((uchar *)(gd->env_addr + index));
 }
-uchar env_get_char_spec(int)
-	__attribute__((weak, alias("__env_get_char_spec")));
 
 static uchar env_get_char_init(int index)
 {
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-07-21 20:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-10 21:27 [U-Boot] [PATCH] common: env_common: make env_get_char_spec __weak Jeroen Hofstee
2014-07-10 21:51 ` Jeroen Hofstee
2014-07-11  4:26 ` Wolfgang Denk
2014-07-11 17:16   ` Jeroen Hofstee
2014-07-11 19:14     ` Wolfgang Denk
2014-07-12 13:22 ` [U-Boot] [PATCH v2] " Jeroen Hofstee
2014-07-21 20:43   ` [U-Boot] [U-Boot, " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox