servalproject / serval-dna

The Serval Project's core daemon that implements Distributed Numbering Architecture (DNA), MDP, VoMP, Rhizome, MeshMS, etc.
http://servalproject.org
Other
170 stars 81 forks source link

Serval does not compile on openwrt #112

Closed adur1990 closed 8 years ago

adur1990 commented 8 years ago

Development branch, current commit (848f01e7d3480a3b7889c765c4be1731bac25c26).

SERVALD CC rhizome_crypto.c
In file included from serval.h:122:0,
                 from rhizome_crypto.c:25:
rhizome_crypto.c: In function 'rhizome_derive_payload_key':
serval_types.h:59:91: error: 'box_pk' may be used uninitialized in this function [-Werror=maybe-uninitialized]
 #define alloca_tohex_sid_t_trunc(sid,strlen)  tohex((char *)alloca((strlen)+1), (strlen), (sid).binary)
                                                                                           ^
rhizome_crypto.c:572:18: note: 'box_pk' was declared here
     const sid_t *box_pk;
                  ^
lakeman commented 8 years ago

Well, that's a spurious warning. But we can always set it to NULL explicitly.

Fixed by 1e3236e

On Mon, Jun 6, 2016 at 8:28 PM, adur1990 notifications@github.com wrote:

Development branch, current commit (848f01e https://github.com/servalproject/serval-dna/commit/848f01e7d3480a3b7889c765c4be1731bac25c26 ).

SERVALD CC rhizome_crypto.c In file included from serval.h:122:0, from rhizome_crypto.c:25: rhizome_crypto.c: In function 'rhizome_derive_payload_key': serval_types.h:59:91: error: 'box_pk' may be used uninitialized in this function [-Werror=maybe-uninitialized]

define alloca_tohex_sid_t_trunc(sid,strlen) tohex((char *)alloca((strlen)+1), (strlen), (sid).binary)

                                                                                       ^

rhizome_crypto.c:572:18: note: 'box_pk' was declared here const sid_t *box_pk; ^

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/servalproject/serval-dna/issues/112, or mute the thread https://github.com/notifications/unsubscribe/AAkD3uLWWHQZjFCfm1Qryt5aLPVLSFVkks5qI_08gaJpZM4Iux-e .