Merge pull request #4738 from SeppoTakalo/compile_warnings

ONME-3113: Fix GCC_ARM and ARM compiler warnings from mbed-mesh-api
pull/4786/head
Jimmy Brisson 2017-07-27 09:42:18 -05:00 committed by GitHub
commit 3f52924821
6 changed files with 14 additions and 14 deletions

View File

@ -34,9 +34,9 @@ public:
LoWPANNDInterface(NanostackRfPhy *phy) : MeshInterfaceNanostack(phy) { } LoWPANNDInterface(NanostackRfPhy *phy) : MeshInterfaceNanostack(phy) { }
nsapi_error_t initialize(NanostackRfPhy *phy); nsapi_error_t initialize(NanostackRfPhy *phy);
int connect(); virtual int connect();
int disconnect(); virtual int disconnect();
bool getOwnIpAddress(char *address, int8_t len); virtual bool getOwnIpAddress(char *address, int8_t len);
bool getRouterIpAddress(char *address, int8_t len); bool getRouterIpAddress(char *address, int8_t len);
private: private:
mesh_error_t init(); mesh_error_t init();

View File

@ -32,7 +32,7 @@ public:
* *
* @return 0 on success, negative on failure * @return 0 on success, negative on failure
*/ */
virtual nsapi_error_t initialize(NanostackPhy *phy); nsapi_error_t initialize(NanostackPhy *phy);
/** Start the interface /** Start the interface
* *

View File

@ -27,9 +27,9 @@ public:
NanostackEthernetInterface(NanostackEthernetPhy *phy) : MeshInterfaceNanostack(phy) { } NanostackEthernetInterface(NanostackEthernetPhy *phy) : MeshInterfaceNanostack(phy) { }
nsapi_error_t initialize(NanostackEthernetPhy *phy); nsapi_error_t initialize(NanostackEthernetPhy *phy);
int connect(); virtual int connect();
int disconnect(); virtual int disconnect();
bool getOwnIpAddress(char *address, int8_t len); virtual bool getOwnIpAddress(char *address, int8_t len);
bool getRouterIpAddress(char *address, int8_t len); bool getRouterIpAddress(char *address, int8_t len);
}; };

View File

@ -34,8 +34,8 @@ public:
ThreadInterface(NanostackRfPhy *phy) : MeshInterfaceNanostack(phy) { } ThreadInterface(NanostackRfPhy *phy) : MeshInterfaceNanostack(phy) { }
nsapi_error_t initialize(NanostackRfPhy *phy); nsapi_error_t initialize(NanostackRfPhy *phy);
int connect(); virtual int connect();
int disconnect(); virtual int disconnect();
private: private:
/* /*
* \brief Initialization of the interface. * \brief Initialization of the interface.
@ -69,7 +69,7 @@ private:
* \param len is the length of the address buffer, must be at least 40 bytes * \param len is the length of the address buffer, must be at least 40 bytes
* \return true if address is read successfully, false otherwise * \return true if address is read successfully, false otherwise
*/ */
bool getOwnIpAddress(char *address, int8_t len); virtual bool getOwnIpAddress(char *address, int8_t len);
}; };
#endif // THREADINTERFACE_H #endif // THREADINTERFACE_H

View File

@ -32,4 +32,4 @@ int8_t enet_tasklet_get_ip_address(char *address, int8_t len);
} }
#endif #endif
#endif // ENET_TASKLET_H #endif // ENET_TASKLET_H

View File

@ -27,12 +27,12 @@ public:
* @return Device driver ID or a negative error * @return Device driver ID or a negative error
* code on failure * code on failure
*/ */
int8_t phy_register() { return rf_register();} virtual int8_t phy_register() { return rf_register();}
/** Unregister this physical interface /** Unregister this physical interface
* *
*/ */
void unregister() { rf_unregister(); } virtual void unregister() { rf_unregister(); }
}; };
#endif /* NANOSTACK_RF_PHY_H_ */ #endif /* NANOSTACK_RF_PHY_H_ */