We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have this code
IAP_STATUS_CODE software_update_procedure(int8_t const *ap_folder_entry)
which calls
if (strncasecmp(ap_folder_entry + 8, IMAGES_NAME_EXTENSION, strlen(IMAGES_NAME_EXTENSION) ) == 0)
while
extern _ARMABI int strncasecmp(const char * /*s1*/, const char * /*s2*/, size_t /*n*/) __attribute__((__nonnull__(1,2)));
which generates this warning:
src\software_update.c(16): warning: #167-D: argument of type "const int8_t *" is incompatible with parameter of type "const char *"
but the type int8_t is defined like this
typedef signed char int8_t;
checking "Plain Char is Signed" does not help.
Yes. So what?
Plain 'char' is a type distinct from both signed char and unsigned char. Even if plain char is signed, it's not the same as signed char.
As far as pointers to each are concerned, that renders them incompatible.