Skip to content

Commit 789b2b0

Browse files
authored
FiX build when Ethernet is included (#6)
The macro `MBED_DEPRECATED` only takes one argument. Also move it to ensure the class is marked deprecated correctly.
1 parent ffa8caa commit 789b2b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/Ethernet.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ namespace mbed {
6161
* }
6262
* @endcode
6363
*/
64+
class
6465
MBED_DEPRECATED(
65-
"EthInterface is now the preferred way to get an Ethernet object.",
66-
"Alternatively, use NetworkInterface to get an instance of an appropriate network"
66+
"EthInterface is now the preferred way to get an Ethernet object. "
67+
"Alternatively, use NetworkInterface to get an instance of an appropriate network "
6768
"interface (WiFi or Ethernet)."
68-
)
69-
class Ethernet : private NonCopyable<Ethernet> {
69+
) Ethernet : private NonCopyable<Ethernet> {
7070

7171
public:
7272

0 commit comments

Comments
 (0)