Skip to content

Commit 1736027

Browse files
author
Pavel Siska
committed
ipfixprobe - fix build warnings
1 parent 4546ff6 commit 1736027

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

include/ipfixprobe/outputPlugin.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ namespace ipxp {
3333
class IPXP_API OutputPlugin : public Plugin {
3434
public:
3535
using ProcessPlugins = std::vector<std::pair<std::string, std::shared_ptr<ProcessPlugin>>>;
36+
using Plugin::init;
3637
uint64_t m_flows_seen; /**< Number of flows received to export. */
3738
uint64_t m_flows_dropped; /**< Number of flows that could not be exported. */
3839

src/core/ipfixprobe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static void printRegisteredPlugins(
145145
std::cout << "#####################\n";
146146
}
147147

148-
static void printPlugins()
148+
[[maybe_unused]] static void printPlugins()
149149
{
150150
auto& inputPluginFactory = InputPluginFactory::getInstance();
151151
auto& storagePluginFactory = StoragePluginFactory::getInstance();

src/plugins/input/nfb/src/ndp.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ InputPlugin::Result NdpPacketReader::get(PacketBlock& packets)
125125
parser_opt_t opt = {&packets, false, false, 0};
126126
struct ndp_packet* ndp_packet;
127127
struct timeval timestamp;
128-
int ret = -1;
129128

130129
packets.cnt = 0;
131130
constexpr size_t maxBurstSize = 64;
@@ -148,7 +147,7 @@ InputPlugin::Result NdpPacketReader::get(PacketBlock& packets)
148147
received += reader.get_packets(packetSpan, timestampSpan);
149148
}
150149

151-
for (unsigned i = 0; i < received; ++i) {
150+
for (unsigned i = 0; i < static_cast<unsigned>(received); ++i) {
152151
ndp_packet = &ndp_packet_burst[i];
153152
timestamp = timestamps[i];
154153

src/plugins/output/ipfix/src/ipfix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static const PluginManifest ipfixPluginManifest = {
100100
*
101101
* name enterprise-number element-id length
102102
*/
103-
template_file_record_t ipfix_fields[][1] = {IPFIX_ENABLED_TEMPLATES(X) nullptr};
103+
template_file_record_t ipfix_fields[][1] = {IPFIX_ENABLED_TEMPLATES(X) {}};
104104

105105
/* Basic IPv4 template. */
106106
const char* basic_tmplt_v4[] = {BASIC_TMPLT_V4(IPFIX_FIELD_NAMES) nullptr};

0 commit comments

Comments
 (0)