Created
May 21, 2014 06:53
-
-
Save c9s/e0ef1f0a1f78e6adedb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check_tree.c:34:35: warning: implicit declaration of function 'zstrdup' is invalid in C99 [-Wimplicit-function-declaration] | |
fail_if( r3_node_add_child(n, zstrdup("/add") , child) == FALSE ); | |
^ | |
/opt/local/include/check.h:271:4: note: expanded from macro 'fail_if' | |
(expr) ? \ | |
^ | |
check_tree.c:34:35: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion] | |
fail_if( r3_node_add_child(n, zstrdup("/add") , child) == FALSE ); | |
^~~~~~~~~~~~~~~ | |
/opt/local/include/check.h:271:4: note: expanded from macro 'fail_if' | |
(expr) ? \ | |
^ | |
../include/r3.h:104:43: note: passing argument to parameter 'pat' here | |
edge * r3_node_add_child(node * n, char * pat , node *child); | |
^ | |
check_tree.c:221:43: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion] | |
fail_if( FALSE == str_array_append(l, zstrdup("abc") ) ); | |
^~~~~~~~~~~~~~ | |
/opt/local/include/check.h:271:4: note: expanded from macro 'fail_if' | |
(expr) ? \ | |
^ | |
../include/str_array.h:25:48: note: passing argument to parameter 'token' here | |
bool str_array_append(str_array * list, char * token); | |
^ | |
check_tree.c:224:43: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion] | |
fail_if( FALSE == str_array_append(l, zstrdup("foo") ) ); | |
^~~~~~~~~~~~~~ | |
/opt/local/include/check.h:271:4: note: expanded from macro 'fail_if' | |
(expr) ? \ | |
^ | |
../include/str_array.h:25:48: note: passing argument to parameter 'token' here | |
bool str_array_append(str_array * list, char * token); | |
^ | |
check_tree.c:227:43: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion] | |
fail_if( FALSE == str_array_append(l, zstrdup("bar") ) ); | |
^~~~~~~~~~~~~~ | |
/opt/local/include/check.h:271:4: note: expanded from macro 'fail_if' | |
(expr) ? \ | |
^ | |
../include/str_array.h:25:48: note: passing argument to parameter 'token' here | |
bool str_array_append(str_array * list, char * token); | |
^ | |
check_tree.c:230:43: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion] | |
fail_if( FALSE == str_array_append(l, zstrdup("zoo") ) ); | |
^~~~~~~~~~~~~~ | |
/opt/local/include/check.h:271:4: note: expanded from macro 'fail_if' | |
(expr) ? \ | |
^ | |
../include/str_array.h:25:48: note: passing argument to parameter 'token' here | |
bool str_array_append(str_array * list, char * token); | |
^ | |
6 warnings generated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment