https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62148
--- Comment #1 from aron at cohesity dot com --- Created attachment 33333 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33333&action=edit Modified chk.cc that when compiled does not emit signed/unsigned comparison warning Attached is the modified source file chk.cc that has the offending statement at the beginning. Try compiling it again using 'g++ -Wall -c chk.cc'. This time there won't be any warning.