gnome-vfs - compilation error with gcc 3.4



Due to changes in gcc

gnome-vfs/test/test-uri.c and
gnome-vfs/modules/http-authn.c

won't compile with gcc 3.4


Here is a quick work-around for this issue.
May someone please commit it or even make a better one?


The diff:

 #define VERIFY_STRING_RESULT(function, expected) \
        G_STMT_START 
{                                                           \
                char *result = function;                                         
\
+               char *expected2 = expected;\
                if (!((result == NULL && expected == NULL)                       
\
-                     || (result != NULL && expected != NULL && strcmp 
(result, (char *)expected) == 0))) {       \
+                     || (result != NULL && expected != NULL && strcmp 
(result, (char *)expected2) == 0))) {      \
                        test_failed ("%s:%s:%s: returned '%s' expected '%s'", 
__FILE__, __LINE__, #function, result, expected);   \
                }                                                                
\
        } G_STMT_END




Regards




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]