Bug 807

Summary: workaround for possible some "unused" function parameters in test code
Product: unbound Reporter: JINMEI Tatuya <jtatuya>
Component: serverAssignee: unbound team <unbound-team>
Severity: enhancement CC: cathya, wouter
Priority: P5    
Version: unspecified   
Hardware: Other   
OS: All   
Attachments: sample patch

Description JINMEI Tatuya 2016-08-03 23:28:41 CEST
Created attachment 345 [details]
sample patch

The 'cb_arg' parameter of testcode/fake_event.c:outnet_serviced_query_stop() is unused unless UNBOUND_DEBUG is defined.  It can cause a warning promoted to a compiler error depending on compilation options.

The attached diff will prevent the warning.
Comment 1 Wouter Wijngaards 2016-08-04 09:18:18 CEST
Hi Jinmei,

Fixed, thanks for the report!

Best regards, Wouter