Author

Topic: [HELP]Compile wallet (Warnings [-fpermissive] ) (Read 1683 times)

member
Activity: 109
Merit: 35
It might be worth adding -fpermissive to your CXXFLAGS in the qt-pro file i.e.

Code:
QMAKE_CXXFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fpermissive
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
C code being compiled as C++.
hero member
Activity: 728
Merit: 500
When I Compile X11-X13-X15 wallets (ubuntu) I get some warnings (Algo files):

Quote
simd.c:1565:5: warning: invalid conversion from ‘void*’ to ‘sph_simd_small_context*’ [-fpermissive]
  sc = cc;
     ^
simd.c: In function ‘void init_big(void*, const u32*)’:
simd.c:1576:5: warning: invalid conversion from ‘void*’ to ‘sph_simd_big_context*’ [-fpermissive]
  sc = cc;
     ^
simd.c: In function ‘void update_small(void*, const void*, size_t)’:
simd.c:1587:5: warning: invalid conversion from ‘void*’ to ‘sph_simd_small_context*’ [-fpermissive]
  sc = cc;
     ^
simd.c: In function ‘void update_big(void*, const void*, size_t)’:
simd.c:1612:5: warning: invalid conversion from ‘void*’ to ‘sph_simd_big_context*’ [-fpermissive]
  sc = cc;
 
 
blake.c: In function ‘void blake64_close(sph_blake_big_context*, unsigned int, unsigned int, void*, size_t)’:
blake.c:991:6: warning: invalid conversion from ‘void*’ to ‘unsigned char*’ [-fpermissive]
  out = dst;
                                         ^
blake.c:791:1: warning:   initializing argument 1 of ‘void blake32_init(sph_blake_small_context*, const sph_u32*, const sph_u32*)’ [-fpermissive]
 blake32_init(sph_blake_small_context *sc,
 ^
blake.c: In function ‘void sph_blake224(void*, const void*, size_t)’:
blake.c:1009:23: warning: invalid conversion from ‘void*’ to ‘sph_blake_small_context*’ [-fpermissive]
  blake32(cc, data, len);
 
groestl.c: In function ‘void groestl_big_close(sph_groestl_big_context*, unsigned int, unsigned int, void*, size_t)’:
groestl.c:2952:17: warning: variable ‘buf’ set but not used [-Wunused-but-set-variable]
  unsigned char *buf;
                 ^
groestl.c: In function ‘void sph_groestl224_init(void*)’:
groestl.c:3013:28: warning: invalid conversion from ‘void*’ to ‘sph_groestl_small_context*’ [-fpermissive]

etc
etc
etc
for jk, keccak, skein etc etc

It's normal?
Jump to: