espressif / esp-dl

Espressif deep-learning library for AIoT applications
MIT License
519 stars 116 forks source link

Fix for tautological comparison in image_util.c #22

Closed robinvanemden closed 4 years ago

robinvanemden commented 4 years ago

On compilation, the following error is thrown:

../components/esp-face/image_util/image_util.c:454:33: error: 
     self-comparison always evaluates to true [-Werror=tautological-compare]

     if (src_w == dst_w && src_h == src_h)
                           ^^^^^^^^^^^^^^

The pull request fixes this by changing the the offending line 454 to:

     if (src_w == dst_w && src_h == dst_h)