Squashed commit of the following:
commit
0881d5acce7594ed3fe56b36a2c6e6d7c360c513
Author: davis mcpherson <davis.mcpherson@gmail.com>
Date: Fri Oct 30 14:51:32 2015 -0400
only build unit test specific files when unit tests are enabled
commit
ce554463c12976562abfb640288f4995269b8896
Author: davis mcpherson <davis.mcpherson@gmail.com>
Date: Fri Oct 30 14:37:43 2015 -0400
fix configure & compiler warnings
libstream_a_SOURCES = \
flush_bucket.cc \
flush_bucket.h \
+paf.cc \
stream.h \
stream_api.cc \
stream_inspectors.cc \
+if ( BUILD_UNIT_TESTS )
+ set(TEST_FILES stream_tcp_unit_test.cc)
+endif()
+
+
add_library( stream_libtcp STATIC
tcp_segment_descriptor.cc
tcp_stream_tracker.cc
tcp_state_handler.cc
tcp_state_machine.cc
- stream_tcp_unit_test.cc
+ ${TEST_FILES}
)
tcp_state_machine.cc \
tcp_state_machine.h \
tcp_segment_descriptor.cc \
-tcp_segment_descriptor.h \
+tcp_segment_descriptor.h
+
+if BUILD_UNIT_TESTS
+libstream_libtcp_a_SOURCES += \
stream_tcp_unit_test.cc \
stream_tcp_unit_test.h
+endif
+
noinst_LIBRARIES = libstream_tcp.a
libstream_tcp_a_SOURCES = \
-../paf.cc \
stream_tcp.cc \
stream_tcp.h \
segment_overlap_editor.h \
bool TcpNormalizerProxy::validate_rst( TcpDataBlock *tdb )
{
+#ifndef DEBUG_MSGS
+ UNUSED( tdb );
+#endif
+
// FIXIT - will session->flow ever be null? i would think not, remove this check if possible
if( session->flow )
{