cmbi / hssp

Create DSSP and HSSP files
GNU General Public License v3.0
83 stars 18 forks source link

Fails to compile on Mac OS X x64 #108

Closed mikeoconnor0308 closed 5 years ago

mikeoconnor0308 commented 5 years ago

Attempting to compile on OS X High Sierra in x86-64 (config.log attached) fails with the following warning:

/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
depbase=`echo src/hssp-nt.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
    g++ -arch x86_64 -DHAVE_CONFIG_H -I.  -std=c++11 -pedantic -Wall -Werror -Wno-reorder -pthread -I/usr/local/include -I./src/ -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9  -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -MT src/hssp-nt.o -MD -MP -MF $depbase.Tpo -c -o src/hssp-nt.o src/hssp-nt.cpp &&\
    mv -f $depbase.Tpo $depbase.Po
src/hssp-nt.cpp:478:16: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]

Removing the (seemingly unnecessary) check seems to fix the issue.

config.log

cbaakman commented 5 years ago

Thank you for pointing this out. In the next release, this expression will be replaced by "ix < d".