mirror of
https://github.com/mfontanini/libtins
synced 2026-01-25 11:41:35 +01:00
Fix -Wextra compiler warnings. (#184)
* Fix -Wextra compiler warnings. Fix #183. Signed-off-by: Kyle Fazzari <github@status.e4ward.com> * Comment out unused parameters. This is done everywhere possible instead of using Internals::unused(). Note that this involved moving some implementations into the corresponding .cpp file. Signed-off-by: Kyle Fazzari <github@status.e4ward.com> * Fix warnings in tests as well. Signed-off-by: Kyle Fazzari <github@status.e4ward.com> * Leave IPv4Reassembler alone, it's growing. Signed-off-by: Kyle Fazzari <github@status.e4ward.com>
This commit is contained in:
committed by
Matias Fontanini
parent
94e5ac2109
commit
a71a3d29ff
@@ -67,9 +67,8 @@ Dot11::Dot11(const address_type& dst_hw_addr)
|
||||
addr1(dst_hw_addr);
|
||||
}
|
||||
|
||||
Dot11::Dot11(const dot11_header* header_ptr)
|
||||
Dot11::Dot11(const dot11_header* /*header_ptr*/)
|
||||
: header_(), options_size_(0) {
|
||||
|
||||
}
|
||||
|
||||
Dot11::Dot11(const uint8_t* buffer, uint32_t total_sz)
|
||||
@@ -78,6 +77,12 @@ Dot11::Dot11(const uint8_t* buffer, uint32_t total_sz)
|
||||
stream.read(header_);
|
||||
}
|
||||
|
||||
void Dot11::write_ext_header(Memory::OutputMemoryStream& /*stream*/) {
|
||||
}
|
||||
|
||||
void Dot11::write_fixed_parameters(Memory::OutputMemoryStream& /*stream*/) {
|
||||
}
|
||||
|
||||
void Dot11::parse_tagged_parameters(InputMemoryStream& stream) {
|
||||
if (stream) {
|
||||
while (stream.size() >= 2) {
|
||||
@@ -208,7 +213,7 @@ void Dot11::send(PacketSender& sender, const NetworkInterface& iface) {
|
||||
}
|
||||
#endif // _WIN32
|
||||
|
||||
void Dot11::write_serialization(uint8_t* buffer, uint32_t total_sz, const PDU* parent) {
|
||||
void Dot11::write_serialization(uint8_t* buffer, uint32_t total_sz, const PDU* /*parent*/) {
|
||||
OutputMemoryStream stream(buffer, total_sz);
|
||||
stream.write(header_);
|
||||
write_ext_header(stream);
|
||||
|
||||
Reference in New Issue
Block a user