Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(974)

Unified Diff: src/wifi/model/wifi-information-element-vector.cc

Issue 333070043: Eliminate Visual Studio compiler warnings (Closed)
Patch Set: Updated patch for latest changes. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/wifi/model/wifi-information-element-vector.cc
===================================================================
--- a/src/wifi/model/wifi-information-element-vector.cc
+++ b/src/wifi/model/wifi-information-element-vector.cc
@@ -19,6 +19,7 @@
*/
#include "wifi-information-element-vector.h"
+#include "ns3/unused.h"
namespace ns3 {
@@ -72,6 +73,7 @@
uint32_t
WifiInformationElementVector::Deserialize (Buffer::Iterator start)
{
+ NS_UNUSED(start);
NS_FATAL_ERROR ("This variant should not be called on a variable-sized header");
return 0;
}
@@ -103,6 +105,7 @@
Ptr<WifiInformationElement> newElement;
switch (id)
{
+ case 0: // eliminate compiler warning
S. Deronne 2018/02/18 14:52:56 OK
default:
NS_FATAL_ERROR ("Information element " << static_cast<uint16_t> (id) << " is not implemented");
return 0;

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b