You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
../keyedge/ocalls_eapp.h: In function 'print_string':
../keyedge/ocalls_eapp.h:34:39: error: passing argument 1 of 'strlen' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
size_t __0_msg_keyedge_size = strlen(msg) + 1;
^~~
In file included from ../keyedge/flatbuffers_common_reader.h:221:0,
from ../keyedge/ocalls_reader.h:7,
from ../keyedge/ocalls_builder.h:7,
from ../keyedge/ocalls_eapp.h:6,
from eapp.c:2:
/home/nisiyama/keystone/sdk/lib/app/include/string.h:9:8: note: expected 'char *' but argument is of type 'const char *'
size_t strlen(char* str);
^~~~~~
I think we might have dropped the const part of const char* in strlen. Is it intentional?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I think we might have dropped the
const
part ofconst char*
instrlen
. Is it intentional?The text was updated successfully, but these errors were encountered: