Skip to content

Commit 66b1cf7

Browse files
committed
Fix non-void without return value warnings
Signed-off-by: Anders Martinsson <[email protected]>
1 parent e76dc54 commit 66b1cf7

10 files changed

+30
-0
lines changed

model/linux/linux-dccp-socket-factory-impl.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ LinuxDccpSocketFactoryImpl::CreateSocket (void)
4141
socket->SetAttribute ("Protocol", UintegerValue (IPPROTO_DCCP));
4242
socket->CreateSocket ();
4343
return socket;
44+
#else
45+
NS_LOG_WARN ("LinuxDccpSocketFactoryImpl::CreateSocket(): require KERNEL_STACK");
46+
return nullptr;
4447
#endif
4548
}
4649

model/linux/linux-dccp6-socket-factory-impl.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ LinuxDccp6SocketFactoryImpl::CreateSocket (void)
4141
socket->SetAttribute ("Protocol", UintegerValue (IPPROTO_DCCP));
4242
socket->CreateSocket ();
4343
return socket;
44+
#else
45+
NS_LOG_WARN ("LinuxDccp6SocketFactoryImpl::CreateSocket(): require KERNEL_STACK");
46+
return nullptr;
4447
#endif
4548
}
4649

model/linux/linux-ipv4-raw-socket-factory-impl.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ LinuxIpv4RawSocketFactoryImpl::CreateSocket (void)
4141
socket->SetAttribute ("Protocol", UintegerValue (25));
4242
socket->CreateSocket ();
4343
return socket;
44+
#else
45+
NS_LOG_WARN ("LinuxIpv4RawSocketFactoryImpl::CreateSocket(): require KERNEL_STACK");
46+
return nullptr;
4447
#endif
4548
}
4649

model/linux/linux-ipv6-raw-socket-factory-impl.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ LinuxIpv6RawSocketFactoryImpl::CreateSocket (void)
4141
socket->SetAttribute ("Protocol", UintegerValue (25));
4242
socket->CreateSocket ();
4343
return socket;
44+
#else
45+
NS_LOG_WARN ("LinuxIpv6RawSocketFactoryImpl::CreateSocket(): require KERNEL_STACK");
46+
return nullptr;
4447
#endif
4548
}
4649

model/linux/linux-sctp-socket-factory-impl.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ LinuxSctpSocketFactoryImpl::CreateSocket (void)
4141
socket->SetAttribute ("Protocol", UintegerValue (IPPROTO_SCTP));
4242
socket->CreateSocket ();
4343
return socket;
44+
#else
45+
NS_LOG_WARN ("LinuxSctpSocketFactoryImpl::CreateSocket(): require KERNEL_STACK");
46+
return nullptr;
4447
#endif
4548
}
4649

model/linux/linux-sctp6-socket-factory-impl.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ LinuxSctp6SocketFactoryImpl::CreateSocket (void)
4141
socket->SetAttribute ("Protocol", UintegerValue (IPPROTO_SCTP));
4242
socket->CreateSocket ();
4343
return socket;
44+
#else
45+
NS_LOG_WARN ("LinuxSctp6SocketFactoryImpl::CreateSocket(): require KERNEL_STACK");
46+
return nullptr;
4447
#endif
4548
}
4649

model/linux/linux-tcp-socket-factory-impl.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ LinuxTcpSocketFactoryImpl::CreateSocket (void)
4141
socket->SetAttribute ("Protocol", UintegerValue (IPPROTO_TCP));
4242
socket->CreateSocket ();
4343
return socket;
44+
#else
45+
NS_LOG_WARN ("LinuxTcpSocketFactoryImpl::CreateSocket(): require KERNEL_STACK");
46+
return nullptr;
4447
#endif
4548
}
4649

model/linux/linux-tcp6-socket-factory-impl.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ LinuxTcp6SocketFactoryImpl::CreateSocket (void)
4141
socket->SetAttribute ("Protocol", UintegerValue (IPPROTO_TCP));
4242
socket->CreateSocket ();
4343
return socket;
44+
#else
45+
NS_LOG_WARN ("LinuxTcp6SocketFactoryImpl::CreateSocket(): require KERNEL_STACK");
46+
return nullptr;
4447
#endif
4548
}
4649

model/linux/linux-udp-socket-factory-impl.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ LinuxUdpSocketFactoryImpl::CreateSocket (void)
4141
socket->SetAttribute ("Protocol", UintegerValue (IPPROTO_UDP));
4242
socket->CreateSocket ();
4343
return socket;
44+
#else
45+
NS_LOG_WARN ("LinuxUdpSocketFactoryImpl::CreateSocket(): require KERNEL_STACK");
46+
return nullptr;
4447
#endif
4548
}
4649

model/linux/linux-udp6-socket-factory-impl.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ LinuxUdp6SocketFactoryImpl::CreateSocket (void)
4141
socket->SetAttribute ("Protocol", UintegerValue (IPPROTO_UDP));
4242
socket->CreateSocket ();
4343
return socket;
44+
#else
45+
NS_LOG_WARN ("LinuxUdp6SocketFactoryImpl::CreateSocket(): require KERNEL_STACK");
46+
return nullptr;
4447
#endif
4548
}
4649

0 commit comments

Comments
 (0)