Merge pull request #84 from nickbroon/random_fixes

Couple of small fixes
master
Oliver Gasser 2017-12-11 13:30:43 +01:00 committed by GitHub
commit ff2d37059a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 12 deletions

View File

@ -23,7 +23,7 @@ PROJECT(VERMONT)
### CMake configuration
# allow building with old CMake. Use some bundled modules as a fallback
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
# TODO: Once all warnings are fixed add -Werror to both of these
@ -68,15 +68,6 @@ SUBDIRS(
src
)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 OLD)
cmake_policy(SET CMP0002 OLD)
if (POLICY CMP0017)
cmake_policy(SET CMP0017 OLD)
endif(POLICY CMP0017)
endif(COMMAND cmake_policy)
ADD_EXECUTABLE(vermont
src/vermont.cc
)

View File

@ -41,7 +41,7 @@ IpfixReceiverZmq::IpfixReceiverZmq(std::vector<std::string> endpoints,
: endpoints(endpoints), channels(channels),
zmq_high_watermark(zmq_high_watermark),
zmq_poll_timeout(zmq_poll_timeout),
statReceivedPackets(0), moduleId(moduleId)
statReceivedPackets(0)
{
if (endpoints.empty()) {
THROWEXCEPTION("No ZMQ channels configured, cannot start ZMQ Receiver");

View File

@ -57,7 +57,7 @@ private:
std::vector<zsock_t *> zmq_sockets;
zpoller_t *zpoller;
uint32_t statReceivedPackets; /**< number of received packets */
unsigned int moduleId;
};
#endif // ZMQ_SUPPORT_ENABLED