mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-05 20:55:26 +00:00
various: Fix GCC 11.2 compilation issues.
* Initialize some variables that are never used anyway. * Use valid pointers instead of integers cast to void pointers when calling pthread_setspecific(). ASTERISK-29711 #close ASTERISK-29713 #close Change-Id: I8728cd6f2f4b28e0e48113c5da450b768c2a6683
This commit is contained in:
@@ -2213,7 +2213,7 @@ void ast_log_safe(int level, const char *file, int line, const char *function, c
|
||||
return;
|
||||
}
|
||||
|
||||
if (ast_threadstorage_set_ptr(&in_safe_log, (void*)1)) {
|
||||
if (ast_threadstorage_set_ptr(&in_safe_log, &(int) { 1 })) {
|
||||
/* We've failed to set the flag that protects against
|
||||
* recursion, so bail. */
|
||||
return;
|
||||
|
Reference in New Issue
Block a user