Skip to content

Commit 48a4939

Browse files
larocheaggarg
andauthored
Fix compiler warning (#1291)
- In list.h fix a typo in comments. - In portable/ThirdParty/GCC/Posix/port.c fix compiler warning about "gcc -Wwrite-strings". Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com> Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
1 parent e3a362b commit 48a4939

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/list.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
*
4545
* In addition to it's value, each list item contains a pointer to the next
4646
* item in the list (pxNext), a pointer to the list it is in (pxContainer)
47-
* and a pointer to back to the object that contains it. These later two
47+
* and a pointer back to the object that contains it. These later two
4848
* pointers are included for efficiency of list manipulation. There is
4949
* effectively a two way link between the object containing the list item and
5050
* the list item itself.

portable/ThirdParty/GCC/Posix/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ void prvFatalError( const char * pcCall,
193193
}
194194
/*-----------------------------------------------------------*/
195195

196-
static void prvPortSetCurrentThreadName( char * pxThreadName )
196+
static void prvPortSetCurrentThreadName( const char * pxThreadName )
197197
{
198198
#ifdef __APPLE__
199199
pthread_setname_np( pxThreadName );

0 commit comments

Comments
 (0)