Bitcoin Forum
June 03, 2024, 03:54:29 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [HELP]Compile wallet (Warnings [-fpermissive] )  (Read 1670 times)
Pala_00 (OP)
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500



View Profile
August 18, 2014, 10:01:59 AM
 #1

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?
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
August 18, 2014, 12:12:24 PM
 #2

C code being compiled as C++.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
PereguineBerty
Member
**
Offline Offline

Activity: 109
Merit: 35


View Profile
August 20, 2014, 04:48:02 PM
 #3

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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!