From b94571c58e915e9a688ce776d5d8edc540606e6b Mon Sep 17 00:00:00 2001 From: Timothy Stack Date: Fri, 25 May 2018 06:43:35 -0700 Subject: [PATCH] [build] fixes... --- src/intern_string.hh | 2 +- test/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intern_string.hh b/src/intern_string.hh index c3141f3d..16653497 100644 --- a/src/intern_string.hh +++ b/src/intern_string.hh @@ -94,7 +94,7 @@ struct string_fragment { bool operator==(const char *str) const { size_t len = strlen(str); - return len == this->length() && + return len == (size_t) this->length() && strncmp(this->data(), str, this->length()) == 0; }; diff --git a/test/Makefile.am b/test/Makefile.am index 7bb1c85f..6ce9bdf9 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -131,7 +131,7 @@ test_reltime_LDADD = ../src/libdiag.a test_ncurses_unicode_SOURCES = test_ncurses_unicode.cc lnav_doctests_SOURCES = lnav_doctests.cc -lnav_doctests_LDADD = ../src/libdiag.a $(CONFIG_OBJS) +lnav_doctests_LDADD = ../src/libdiag.a $(CONFIG_OBJS) $(CURSES_LIB) drive_line_buffer_SOURCES = drive_line_buffer.cc drive_line_buffer_LDADD = ../src/libdiag.a $(CURSES_LIB) -lz $(CURSES_LIB)