Fick a bug in configure.in, and make ecore_print_warning use const char (which removes a warning when using __FUNCTION__ as the parameter).

Sebastian
Index: configure.in
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/configure.in,v
retrieving revision 1.62
diff -u -r1.62 configure.in
--- configure.in        12 Nov 2004 02:32:30 -0000      1.62
+++ configure.in        8 Dec 2004 15:58:01 -0000
@@ -573,7 +573,7 @@
    [ EET_CONFIG=$withval;
      echo "using "$EET_CONFIG" for eet-config"; ],
    [ if test -z "$EET_CONFIG"; then
-       AC_PATH_PROG(PROG_EET_CONFIG, "eet-config", "", $PATH)
+       AC_PATH_PROG(EET_CONFIG, "eet-config", "", $PATH)
      fi
    ])
    eet_cflags=`$EET_CONFIG --cflags`
Index: src/lib/ecore/Ecore_Data.h
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/Ecore_Data.h,v
retrieving revision 1.6
diff -u -r1.6 Ecore_Data.h
--- src/lib/ecore/Ecore_Data.h  29 Nov 2004 22:26:28 -0000      1.6
+++ src/lib/ecore/Ecore_Data.h  8 Dec 2004 15:58:01 -0000
@@ -301,7 +301,7 @@
    void ecore_hash_dump_graph(Ecore_Hash *hash);
    
    
-   inline void ecore_print_warning(char *function, char *sparam);
+   inline void ecore_print_warning(const char *function, char *sparam);
    
    /* Wrappers around free() that helps debug free() bugs such as freeing NULL
     * or accessing a pointer that has already been freed */
Index: src/lib/ecore/ecore_value.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_value.c,v
retrieving revision 1.3
diff -u -r1.3 ecore_value.c
--- src/lib/ecore/ecore_value.c 8 May 2004 04:44:04 -0000       1.3
+++ src/lib/ecore/ecore_value.c 8 Dec 2004 15:58:01 -0000
@@ -31,7 +31,7 @@
        2097143, 4194301, 8388617, 16777213 
 };
 
-inline void ecore_print_warning(char *function, char *sparam)
+inline void ecore_print_warning(const char *function, char *sparam)
 {
        fprintf(stderr, "***** Developer Warning ***** :\n"
                   "\tThis program is calling:\n\n"

Reply via email to