Skip to content

Compilation failure in coap_io.c when NDEBUG=1#1

Open
ajsaini wants to merge 1 commit intodthaler:developfrom
ajsaini:develop
Open

Compilation failure in coap_io.c when NDEBUG=1#1
ajsaini wants to merge 1 commit intodthaler:developfrom
ajsaini:develop

Conversation

@ajsaini
Copy link

@ajsaini ajsaini commented Oct 12, 2016

Currenlty building libcoap with NDEBUG=1 causes below compilation error :
"coap_io.c: error : 'COAP_MAX_PDU_SIZE': undeclared identifier".
<pdu.h> file which contains the definition of 'COAP_MAX_PDU_SIZE' is
included only when NDEBUG=0 (inside <debug.h>).
Building iotivity with RELEASE=1 and TEST=1, fails because of above
reason. Proposed fix is to include <pdu.h> inside coap_io.c.

Currenlty building libcoap with NDEBUG=1 causes below compilation error :
"coap_io.c: error : 'COAP_MAX_PDU_SIZE': undeclared identifier".
<pdu.h> file which contains the definition of 'COAP_MAX_PDU_SIZE' is
included only when NDEBUG=0 (inside <debug.h>).
Building iotivity with RELEASE=1 and TEST=1, fails because of above
reason. Proposed fix is to include <pdu.h> inside coap_io.c.
@dthaler
Copy link
Owner

dthaler commented Oct 14, 2016

@ajsaini thanks, fixed!

dthaler pushed a commit that referenced this pull request Jan 27, 2017
Pulling changes from dthaler/libcoap
dthaler pushed a commit that referenced this pull request Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants