rtlabs-com / p-net

PROFINET device stack for embedded devices

Home Page:http://www.rt-labs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When I compile code with tutorial has a error about unsigned and signed

SupermanOfHeiLinPu opened this issue · comments

The error message is:
pf_diag.c:251:76: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] (PF_DIAG_CH_PROP_ACC_GET (p_item->fmt.std.ch_properties) ==
I think it's because compile option or version(I use gcc5.4.0). But i am new at cmake. So anyone can help me please.

I disable -Werror option, then it can be compiled, but has a warning.