mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			Merge pull request #10500 from andrewc-arm/patch-2
This removes many const char* warnings related with LWIP_ASSERT()pull/10567/head
						commit
						03cda262c3
					
				| 
						 | 
				
			
			@ -110,7 +110,7 @@ MBED_NORETURN void lwip_mbed_assert_fail(const char *msg, const char *func, cons
 | 
			
		|||
#else // MBED_CONF_LWIP_USE_MBED_TRACE
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
 | 
			
		||||
MBED_NORETURN void assert_printf(char *msg, int line, char *file);
 | 
			
		||||
MBED_NORETURN void assert_printf(const char *msg, int line, const char *file);
 | 
			
		||||
 | 
			
		||||
/* Plaform specific diagnostic output */
 | 
			
		||||
#define LWIP_PLATFORM_DIAG(vars) printf vars
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -611,7 +611,7 @@ MBED_NORETURN void lwip_mbed_assert_fail(const char *msg, const char *func, cons
 | 
			
		|||
    \param[in]    line  Line number in file with error
 | 
			
		||||
    \param[in]    file  Filename with error
 | 
			
		||||
 */
 | 
			
		||||
MBED_NORETURN void assert_printf(char *msg, int line, char *file) {
 | 
			
		||||
MBED_NORETURN void assert_printf(const char *msg, int line, const char *file) {
 | 
			
		||||
    if (msg)
 | 
			
		||||
        error("%s:%d in file %s\n", msg, line, file);
 | 
			
		||||
    else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue