stefan pushed a commit to branch efl-1.14.

http://git.enlightenment.org/core/efl.git/commit/?id=1501b791a73b50627f154f9176b51deaf501e093

commit 1501b791a73b50627f154f9176b51deaf501e093
Author: Stefan Schmidt <s.schm...@samsung.com>
Date:   Mon May 11 14:44:57 2015 +0200

    rg_etc: Correct ifdef to keep function available for debug build
    
    In the nightly builds we have debug enabled and this spotted the case where
    rg_etc1_solution_coordinates_block_colors_get is actually still used:
    
    lib/eet/.libs/libeet.so: undefined reference to 
`rg_etc1_solution_coordinates_block_colors_get'
    
    Showed only after we switched back from release to dev mode.
    
    @fix
---
 src/static_libs/rg_etc/rg_etc1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/static_libs/rg_etc/rg_etc1.c b/src/static_libs/rg_etc/rg_etc1.c
index d3bc390..8663167 100644
--- a/src/static_libs/rg_etc/rg_etc1.c
+++ b/src/static_libs/rg_etc/rg_etc1.c
@@ -1592,7 +1592,7 @@ 
rg_etc1_solution_coordinates_get_scaled_color(color_quad_u8 *color, const Etc1_S
    rg_etc1_color_quad_u8_init(color, br, bg, bb, 255);
 }
 
-#if 0
+#ifdef RG_ETC1_BUILD_DEBUG
 static inline void
 rg_etc1_solution_coordinates_block_colors_get(const Etc1_Solution_Coordinates 
*coords, color_quad_u8 colors[4])
 {

-- 


Reply via email to