Skip to content

Commit 03cda26

Browse files
authored
Merge pull request #10500 from andrewc-arm/patch-2
This removes many const char* warnings related with LWIP_ASSERT()
2 parents f8cedf3 + aba0227 commit 03cda26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

features/lwipstack/lwip-sys/arch/cc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ MBED_NORETURN void lwip_mbed_assert_fail(const char *msg, const char *func, cons
110110
#else // MBED_CONF_LWIP_USE_MBED_TRACE
111111
#include <stdio.h>
112112

113-
MBED_NORETURN void assert_printf(char *msg, int line, char *file);
113+
MBED_NORETURN void assert_printf(const char *msg, int line, const char *file);
114114

115115
/* Plaform specific diagnostic output */
116116
#define LWIP_PLATFORM_DIAG(vars) printf vars

features/lwipstack/lwip-sys/arch/lwip_sys_arch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ MBED_NORETURN void lwip_mbed_assert_fail(const char *msg, const char *func, cons
611611
\param[in] line Line number in file with error
612612
\param[in] file Filename with error
613613
*/
614-
MBED_NORETURN void assert_printf(char *msg, int line, char *file) {
614+
MBED_NORETURN void assert_printf(const char *msg, int line, const char *file) {
615615
if (msg)
616616
error("%s:%d in file %s\n", msg, line, file);
617617
else

0 commit comments

Comments
 (0)