Fix warnings

parent b0b05f80
......@@ -45,7 +45,7 @@ secure_enclave.edl: secure_enclave/secure_enclave.edl
## AM_CFLAGS =
## AM_CXXFLAGS =
AM_CPPFLAGS += -DSKALE_SGX=1 -DBINARY_OUTPUT=1 -Ileveldb/include -IlibBLS/bls -IlibBLS/libff -IlibBLS -fno-builtin-memset $(GMP_CPPFLAGS)
AM_CPPFLAGS += -Wall -DSKALE_SGX=1 -DBINARY_OUTPUT=1 -Ileveldb/include -IlibBLS/bls -IlibBLS/libff -IlibBLS -fno-builtin-memset $(GMP_CPPFLAGS)
## Additional targets to remove with 'make clean'. You must list
## any edger8r generated files here.
......
......@@ -63,7 +63,7 @@ ENCLAVE_KEY=$(ENCLAVE)_private.pem
## Additional Automake flags needed to build the enclave.
##
AM_CPPFLAGS += $(TGMP_CPPFLAGS) -I../trusted_libff -I../sgx-sdk-build/sgxsdk/include/libcxx \
AM_CPPFLAGS += -Wall $(TGMP_CPPFLAGS) -I../trusted_libff -I../sgx-sdk-build/sgxsdk/include/libcxx \
-I../intel-sgx-ssl/Linux/package/include
AM_CXXFLAGS += -fno-builtin
......
......@@ -73,7 +73,7 @@ unsigned char *carray2Hex(const uint8_t *d, int _len) {
uint8_t* hex2carray(unsigned char * _hex, uint64_t *_bin_len) {
uint64_t len = strlen(_hex);
uint64_t len = strlen((char*)_hex);
if (len == 0 && len % 2 == 1)
......@@ -182,7 +182,7 @@ int main(int argc, char *argv[]) {
unsigned char* errMsg = calloc(1024,1);
strncpy(keyArray, key, 128);
strncpy((char)*keyArray, (char*)key, 128);
int err_status = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment