Enlightenment CVS committal
Author : pfritz
Project : e17
Module : libs/eet
Dir : e17/libs/eet/src/lib
Modified Files:
Eet_private.h eet_data.c
Log Message:
fix compile warnings
===================================================================
RCS file: /cvs/e/e17/libs/eet/src/lib/Eet_private.h,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- Eet_private.h 26 Jun 2008 15:47:25 -0000 1.26
+++ Eet_private.h 17 Jul 2008 20:28:59 -0000 1.27
@@ -60,6 +60,7 @@
const char *eet_dictionary_string_get_char(const Eet_Dictionary *ed, int
index);
int eet_dictionary_string_get_float(const Eet_Dictionary *ed, int
index, float *result);
int eet_dictionary_string_get_double(const Eet_Dictionary *ed,
int index, double *result);
+int eet_dictionary_string_get_hash(const Eet_Dictionary *ed, int
index);
FILE *_eet_memfile_read_open(const void *data, size_t size);
void _eet_memfile_read_close(FILE *f);
===================================================================
RCS file: /cvs/e/e17/libs/eet/src/lib/eet_data.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -3 -r1.88 -r1.89
--- eet_data.c 17 Jul 2008 16:39:28 -0000 1.88
+++ eet_data.c 17 Jul 2008 20:28:59 -0000 1.89
@@ -16,6 +16,7 @@
#include <string.h>
#include <math.h>
#include <ctype.h>
+#include <limits.h>
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
@@ -394,7 +395,6 @@
{
if (ed)
{
- const char *str;
int index;
if (eet_data_get_int(ed, src, src_end, &index) < 0) return -1;
@@ -1190,10 +1190,12 @@
hash ^= ptr >> 16;
hash ^= ptr >> 24;
+#if LONG_BIT != 32
hash ^= ptr >> 32;
hash ^= ptr >> 40;
hash ^= ptr >> 48;
hash ^= ptr >> 56;
+#endif
return hash & 0xFF;
}
@@ -1593,7 +1595,7 @@
Eet_Data_Stream *ds;
void *cdata, *data;
int csize, size;
- Node *n, *n2;
+ Node *n;
if (words_bigendian == -1)
{
@@ -2069,7 +2071,7 @@
#define NEXT_CHUNK(P, Size, Echnk, Ed) \
{ \
int tmp; \
- tmp = Ed ? sizeof (int) * 2 : Echnk.len + 4; \
+ tmp = Ed ? (int) (sizeof(int) * 2) : Echnk.len + 4;\
P += (4 + Echnk.size + tmp); \
Size -= (4 + Echnk.size + tmp); \
}
@@ -2339,7 +2341,6 @@
case EET_G_ARRAY:
case EET_G_VAR_ARRAY:
{
- void *data_ret = NULL;
int count;
int ret;
int i;
@@ -2362,7 +2363,6 @@
/* get all array elements */
for (i = 0; i < count; i++)
{
- void *dst;
void *data_ret = NULL;
/* Advance to next chunk */
@@ -2516,14 +2516,13 @@
static int
eet_data_get_list(const Eet_Dictionary *ed, Eet_Data_Descriptor *edd,
Eet_Data_Element *ede, Eet_Data_Chunk *echnk,
- int type, int group_type, void *data,
+ int type __UNUSED__, int group_type __UNUSED__, void *data,
int level, void (*dumpfunc) (void *data, const char *str),
void *dumpdata,
- char **p, int *size)
+ char **p __UNUSED__, int *size __UNUSED__)
{
void *list = NULL;
void **ptr;
void *data_ret;
- int ret;
EET_ASSERT(!IS_SIMPLE_TYPE(type), return 0);
@@ -2543,7 +2542,7 @@
static int
eet_data_get_hash(const Eet_Dictionary *ed, Eet_Data_Descriptor *edd,
Eet_Data_Element *ede, Eet_Data_Chunk *echnk,
- int type, int group_type, void *data,
+ int type, int group_type __UNUSED__, void *data,
int level, void (*dumpfunc) (void *data, const char *str),
void *dumpdata,
char **p, int *size)
{
@@ -2603,7 +2602,8 @@
* each chunk is pointless.
*/
static int
-eet_data_get_array(const Eet_Dictionary *ed, Eet_Data_Descriptor *edd,
Eet_Data_Element *ede, Eet_Data_Chunk *echnk,
+eet_data_get_array(const Eet_Dictionary *ed, Eet_Data_Descriptor *edd
__UNUSED__,
+ Eet_Data_Element *ede, Eet_Data_Chunk *echnk,
int type, int group_type, void *data,
int level, void (*dumpfunc) (void *data, const char *str),
void *dumpdata,
char **p, int *size)
@@ -2671,9 +2671,9 @@
static int
eet_data_get_unknown(const Eet_Dictionary *ed, Eet_Data_Descriptor *edd,
Eet_Data_Element *ede, Eet_Data_Chunk *echnk,
- int type, int group_type, void *data,
+ int type, int group_type __UNUSED__, void *data,
int level, void (*dumpfunc) (void *data, const char *str),
void *dumpdata,
- char **p, int *size)
+ char **p __UNUSED__, int *size __UNUSED__)
{
int ret;
void *data_ret;
@@ -2741,7 +2741,7 @@
}
static void
-eet_data_put_array(Eet_Dictionary *ed, Eet_Data_Descriptor *edd,
Eet_Data_Element *ede, Eet_Data_Stream *ds, void *data_in)
+eet_data_put_array(Eet_Dictionary *ed, Eet_Data_Descriptor *edd __UNUSED__,
Eet_Data_Element *ede, Eet_Data_Stream *ds, void *data_in)
{
void *data;
int size;
@@ -2777,7 +2777,7 @@
}
static void
-eet_data_put_unknown(Eet_Dictionary *ed, Eet_Data_Descriptor *edd,
Eet_Data_Element *ede, Eet_Data_Stream *ds, void *data_in)
+eet_data_put_unknown(Eet_Dictionary *ed, Eet_Data_Descriptor *edd __UNUSED__,
Eet_Data_Element *ede, Eet_Data_Stream *ds, void *data_in)
{
void *data = NULL;
int size;
@@ -2936,9 +2936,6 @@
for (i = 0; i < edd->elements.num; i++)
{
Eet_Data_Element *ede;
- Eet_Data_Chunk *echnk;
- void *data;
- int size;
ede = &(edd->elements.set[i]);
eet_group_codec[ede->group_type - 100].put(ed, edd, ede, ds, ((char
*)data_in) + ede->offset);
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs