mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-03 17:52:02 +00:00
app_dial, utils.h: Avoid old style declaration and discarded qualifier.
* app_dial: Use const char* for fixed strings. * utils.h: inline should come before return type. Resolves: #1755
This commit is contained in:
committed by
github-actions[bot]
parent
de37314f85
commit
46a8521b00
@@ -769,7 +769,7 @@ void DO_CRASH_NORETURN __ast_assert_failed(int condition, const char *condition_
|
||||
return __VA_ARGS__; \
|
||||
}\
|
||||
})
|
||||
static void force_inline _ast_assert(int condition, const char *condition_str, const char *file, int line, const char *function)
|
||||
static force_inline void _ast_assert(int condition, const char *condition_str, const char *file, int line, const char *function)
|
||||
{
|
||||
if (__builtin_expect(!condition, 1)) {
|
||||
__ast_assert_failed(condition, condition_str, file, line, function);
|
||||
|
||||
Reference in New Issue
Block a user