Enlightenment CVS committal Author : doursse Project : e17 Module : libs/eet
Dir : e17/libs/eet/src/lib Modified Files: eet_data.c Log Message: add unsued attribute when needed =================================================================== RCS file: /cvs/e/e17/libs/eet/src/lib/eet_data.c,v retrieving revision 1.69 retrieving revision 1.70 diff -u -3 -r1.69 -r1.70 --- eet_data.c 28 Mar 2008 17:17:43 -0000 1.69 +++ eet_data.c 3 Apr 2008 19:47:07 -0000 1.70 @@ -6,6 +6,12 @@ # include <config.h> #endif +#if HAVE___ATTRIBUTE__ +#define __UNUSED__ __attribute__((unused)) +#else +#define __UNUSED__ +#endif + #include <stdio.h> #include <string.h> #include <math.h> @@ -243,7 +249,7 @@ /* CHAR TYPE */ static int -eet_data_get_char(const Eet_Dictionary *ed, const void *src, const void *src_end, void *dst) +eet_data_get_char(const Eet_Dictionary *ed __UNUSED__, const void *src, const void *src_end, void *dst) { char *s, *d; @@ -256,7 +262,7 @@ } static void * -eet_data_put_char(Eet_Dictionary *ed, const void *src, int *size_ret) +eet_data_put_char(Eet_Dictionary *ed __UNUSED__, const void *src, int *size_ret) { char *s, *d; @@ -271,7 +277,7 @@ /* SHORT TYPE */ static int -eet_data_get_short(const Eet_Dictionary *ed, const void *src, const void *src_end, void *dst) +eet_data_get_short(const Eet_Dictionary *ed __UNUSED__, const void *src, const void *src_end, void *dst) { short *d; @@ -283,7 +289,7 @@ } static void * -eet_data_put_short(Eet_Dictionary *ed, const void *src, int *size_ret) +eet_data_put_short(Eet_Dictionary *ed __UNUSED__, const void *src, int *size_ret) { short *s, *d; @@ -298,7 +304,7 @@ /* INT TYPE */ static int -eet_data_get_int(const Eet_Dictionary *ed, const void *src, const void *src_end, void *dst) +eet_data_get_int(const Eet_Dictionary *ed __UNUSED__, const void *src, const void *src_end, void *dst) { int *d; @@ -310,7 +316,7 @@ } static void * -eet_data_put_int(Eet_Dictionary *ed, const void *src, int *size_ret) +eet_data_put_int(Eet_Dictionary *ed __UNUSED__, const void *src, int *size_ret) { int *s, *d; @@ -325,7 +331,7 @@ /* LONG LONG TYPE */ static int -eet_data_get_long_long(const Eet_Dictionary *ed, const void *src, const void *src_end, void *dst) +eet_data_get_long_long(const Eet_Dictionary *ed __UNUSED__, const void *src, const void *src_end, void *dst) { unsigned long long *d; @@ -337,7 +343,7 @@ } static void * -eet_data_put_long_long(Eet_Dictionary *ed, const void *src, int *size_ret) +eet_data_put_long_long(Eet_Dictionary *ed __UNUSED__, const void *src, int *size_ret) { unsigned long long *s, *d; @@ -416,13 +422,13 @@ /* ALWAYS INLINED STRING TYPE */ static int -eet_data_get_istring(const Eet_Dictionary *ed, const void *src, const void *src_end, void *dst) +eet_data_get_istring(const Eet_Dictionary *ed __UNUSED__, const void *src, const void *src_end, void *dst) { return eet_data_get_string(NULL, src, src_end, dst); } static void * -eet_data_put_istring(Eet_Dictionary *ed, const void *src, int *size_ret) +eet_data_put_istring(Eet_Dictionary *ed __UNUSED__, const void *src, int *size_ret) { return eet_data_put_string(NULL, src, size_ret); } @@ -1222,7 +1228,7 @@ } static int -eet_data_descriptor_encode_hash_cb(void *hash, const char *key, void *hdata, void *fdata) +eet_data_descriptor_encode_hash_cb(void *hash __UNUSED__, const char *key, void *hdata, void *fdata) { Eet_Dictionary *ed; Eet_Data_Encode_Hash_Info *edehi; ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs