Skip to content

Commit 3508a88

Browse files
committed
fix: warning: ISO C++ forbids converting a string constant to char*
Signed-off-by: Oleg Kokorin <[email protected]>
1 parent d723bf9 commit 3508a88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

connectivity/cellular/include/cellular/framework/AT/AT_CellularDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class AT_CellularDevice : public CellularDevice {
6767
};
6868

6969
public:
70-
AT_CellularDevice(FileHandle *fh, char *delim = "\r");
70+
AT_CellularDevice(FileHandle *fh, const char *delim = "\r");
7171
virtual ~AT_CellularDevice();
7272

7373
virtual nsapi_error_t clear();

connectivity/cellular/source/framework/AT/AT_CellularDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ using namespace std::chrono_literals;
3939
#define DEFAULT_AT_TIMEOUT 1s // at default timeout
4040
const int MAX_SIM_RESPONSE_LENGTH = 16;
4141

42-
AT_CellularDevice::AT_CellularDevice(FileHandle *fh, char *delim):
42+
AT_CellularDevice::AT_CellularDevice(FileHandle *fh, const char *delim):
4343
CellularDevice(),
4444
_at(fh, _queue, DEFAULT_AT_TIMEOUT, delim),
4545
#if MBED_CONF_CELLULAR_USE_SMS

0 commit comments

Comments
 (0)