Bug 807 - workaround for possible some "unused" function parameters in test code
workaround for possible some "unused" function parameters in test code
Status: RESOLVED FIXED
Product: unbound
Classification: Unclassified
Component: server
unspecified
Other All
: P5 enhancement
Assigned To: unbound team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-08-03 23:28 CEST by JINMEI Tatuya
Modified: 2016-08-04 09:18 CEST (History)
2 users (show)

See Also:


Attachments
sample patch (370 bytes, patch)
2016-08-03 23:28 CEST, JINMEI Tatuya
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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