Skip to content

Commit a565a0a

Browse files
committed
zephyrSerial.h - reduce compiler warnings
1 parent 5c4e10e commit a565a0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: cores/arduino/zephyrSerial.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ namespace arduino {
1414
class ZephyrSerialStub : public HardwareSerial
1515
{
1616
public:
17-
void begin(unsigned long baudRate) { }
18-
void begin(unsigned long baudrate, uint16_t config) { }
17+
void begin(__attribute__((unused)) unsigned long baudRate) { }
18+
void begin(__attribute__((unused)) unsigned long baudrate, __attribute__((unused)) uint16_t config) { }
1919
void end() { }
2020
int available() { return 0; }
2121
int peek() { return 0; }

0 commit comments

Comments
 (0)