oic; fix build when compiling with sys/log/stub.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/a4e6f895 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/a4e6f895 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/a4e6f895 Branch: refs/heads/develop Commit: a4e6f895f9257d402124bc010737f817eaefa6cb Parents: 48e7c18 Author: Marko Kiiskila <[email protected]> Authored: Tue Jan 17 16:04:50 2017 -0800 Committer: Marko Kiiskila <[email protected]> Committed: Tue Jan 17 16:04:50 2017 -0800 ---------------------------------------------------------------------- net/oic/src/port/mynewt/log.c | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a4e6f895/net/oic/src/port/mynewt/log.c ---------------------------------------------------------------------- diff --git a/net/oic/src/port/mynewt/log.c b/net/oic/src/port/mynewt/log.c index 8d41ceb..f096849 100644 --- a/net/oic/src/port/mynewt/log.c +++ b/net/oic/src/port/mynewt/log.c @@ -33,6 +33,7 @@ oc_log_endpoint(uint16_t lvl, struct oc_endpoint *oe) char tmp[46 + 6]; (void)tmp; + (void)str; switch (oe->oe.flags) { #if (MYNEWT_VAL(OC_TRANSPORT_IP) == 1) @@ -73,6 +74,7 @@ oc_log_bytes(uint16_t lvl, void *addr, int len, int print_char) int i; uint8_t *p = (uint8_t *)addr; + (void)p; log_printf(&oc_log, LOG_MODULE_IOTIVITY, lvl, "["); for (i = 0; i < len; i++) { if (print_char) {
