pyke369 / pdhcp

an efficient programmable BOOTP/DHCP client/server/relay
MIT License
20 stars 3 forks source link

Issue when trying to compile on i686 or 32 bit arm #5

Closed xhenner closed 6 years ago

xhenner commented 7 years ago

/home/euclide/dev/pdhcp/src/dhcp.cpp:752:41: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                         if (*frame_size > ((ssize_t)sizeof(frame->options) - (2 + (nvalue[0] / 2))))
                                         ^
/home/euclide/dev/pdhcp/src/dhcp.cpp:774:41: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                         if (*frame_size > (ssize_t)sizeof(frame->options) - (2 + (option->size[1] * items)))
                                         ^
/home/euclide/dev/pdhcp/src/dhcp.cpp:798:45: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                             if (*frame_size > (ssize_t)sizeof(frame->options) - (2 + (option->size[1] * items)))
                                             ^
/home/euclide/dev/pdhcp/src/dhcp.cpp:827:45: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                             if (*frame_size > (ssize_t)sizeof(frame->options) - (2 + nvalue[0]))
                                             ^
/home/euclide/dev/pdhcp/src/dhcp.cpp:867:49: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                                 if (*frame_size > (ssize_t)sizeof(frame->options) - (2 + (option->size[1] * items)))
                                                 ^
/home/euclide/dev/pdhcp/src/dhcp.cpp:884:41: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                         if (*frame_size > (ssize_t)sizeof(frame->options) - (2 + (option->size[1] * items)))
                                         ^
/home/euclide/dev/pdhcp/src/dhcp.cpp:917:41: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                         if (*frame_size > (ssize_t)sizeof(frame->options) - (2 + (option->size[1] * items)))
                                         ^
cc1plus: all warnings being treated as errors```
pyke369 commented 6 years ago

Cannot reproduce.