Skip to content

Commit 14bb439

Browse files
committed
nanostack: silence compiler warnings for implicit virtual call_in
ARMCC reminds of the missing virtual declaration of call_in in the Nanostack.h. Warnings silenced: ---8<---8<--- Compile [ 52.3%]: LoWPANNDInterface.cpp [Warning] Nanostack.h@278,0: #1300-D: call_in inherits implicit virtual Compile [ 52.4%]: NanostackEMACInterface.cpp [Warning] Nanostack.h@278,0: #1300-D: call_in inherits implicit virtual Compile [ 52.5%]: MeshInterfaceNanostack.cpp [Warning] Nanostack.h@278,0: #1300-D: call_in inherits implicit virtual Compile [ 52.6%]: NanostackEthernetInterface.cpp [Warning] Nanostack.h@278,0: #1300-D: call_in inherits implicit virtual Compile [ 52.7%]: ThreadInterface.cpp [Warning] Nanostack.h@278,0: #1300-D: call_in inherits implicit virtual ompile [ 53.0%]: WisunInterface.cpp [Warning] Nanostack.h@278,0: #1300-D: call_in inherits implicit virtual
1 parent 8a7f591 commit 14bb439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/nanostack/nanostack-interface/Nanostack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class Nanostack : public OnboardNetworkStack, private mbed::NonCopyable<Nanostac
275275
* @param func Callback to be called
276276
* @return 0 on success, negative error code on failure
277277
*/
278-
nsapi_error_t call_in(int delay, mbed::Callback<void()> func);
278+
virtual nsapi_error_t call_in(int delay, mbed::Callback<void()> func);
279279

280280
struct nanostack_callback {
281281
mbed::Callback<void()> callback;

0 commit comments

Comments
 (0)