Created
July 17, 2017 18:28
-
-
Save elkrejzi/baad3a9c0035ef954cbb8e6ce2d635ba 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
misc.c:147:8: warning: implicit declaration of function 'reallocarray' is invalid in C99 [-Wimplicit-function-declaration] | |
mem = reallocarray(NULL, (size_t) size, element_size); | |
^ | |
misc.c:147:6: warning: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion] | |
mem = reallocarray(NULL, (size_t) size, element_size); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
misc.c:515:40: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
esc_char = (unsigned char) strtoul (array + 1, NULL, 8); | |
^~~~~~~~~ | |
/usr/include/stdlib.h:143:58: note: passing argument to parameter '__nptr' here | |
extern unsigned long int strtoul (const char *__restrict __nptr, | |
^ | |
misc.c:537:40: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] | |
esc_char = (unsigned char) strtoul (array + 2, NULL, 16); | |
^~~~~~~~~ | |
/usr/include/stdlib.h:143:58: note: passing argument to parameter '__nptr' here | |
extern unsigned long int strtoul (const char *__restrict __nptr, | |
^ | |
misc.c:664:12: warning: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion] | |
new_array = reallocarray(array, (size_t) size, element_size); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment