Hi,

Just a follow-up for this compilation issue.

I addressed the unused parameter by defining some macros in oc_api.h.
And now this type of error is removed.

Then I came across another error as follows,

/home/iot/iotivity-constrained/port/riot/clock.c:29:43: error: request for
member ?ticks64? in something not a structure or union

   return (oc_clock_time_t)((xtimer_now64().ticks64 + 999) / 1000);

It is complaining that xtimer_now64() is not a struct. So I looked into
the file "xtimer.h" under RIOTBASE  which is RIOT/sys/include/xtimer.h
and found out the definition for xtimer_now64() has been changed into

uint64_t xtimer_now64(void);

Now I changed this line to be

   return (oc_clock_time_t)(xtimer_now64() + 999/1000);

And it compiled successfully.

I guess clock.c file needs to be updated to keep consistent with the RIOT
update.

Thanks,
-Shengrong

On Fri, May 26, 2017 at 4:36 PM, Shengrong Yin <syin at uh.edu> wrote:

> Hi,
>
> I have downloaded the iotivity-constrained repo.
> And following the compiling instructions on port/riot/README.
>
> Once I configure the board and hit make CLIENT=1, the compiler gives me
> the following errors.
> ../../api/oc_main.c:89:22: error: unused parameter ?mtu_size?
> [-Werror=unused-parameter]
>  oc_set_mtu_size(long mtu_size)
>                       ^
> ../../api/oc_main.c: In function ?oc_set_max_app_data_size?:
> ../../api/oc_main.c:103:31: error: unused parameter ?size?
> [-Werror=unused-parameter]
>  oc_set_max_app_data_size(long size)
>                                ^
> cc1: all warnings being treated as errors.
>
> Is there any way to suppress the compiling error?
>
> Two versions of gcc have been tried.
> OS: UBUNTU 16.04. The gcc version  is 5.4.0.
> OS: UBUNTU 12.04. The gcc version is 4.6.3.
>
> Thanks,
> -Shengrong
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170530/f0eaa869/attachment.html>

Reply via email to