mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
build_system: Fix some warnings highlighted by clang
Fix some warnings found with clang. Change-Id: I5195b6189b148c2ee3ed4a19d015a6d4ef3e77bd
This commit is contained in:
@@ -125,6 +125,7 @@ static void capture_buildopts_cb(int level, const char *data, int len)
|
||||
AST_VECTOR_ADD_SORTED(&buildopts, ast_strdup(ast_skip_blanks(data)), strcmp);
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||
int ast_pjproject_get_buildopt(char *option, char *format_string, ...)
|
||||
{
|
||||
int res = 0;
|
||||
@@ -146,6 +147,7 @@ int ast_pjproject_get_buildopt(char *option, char *format_string, ...)
|
||||
|
||||
return res;
|
||||
}
|
||||
#pragma GCC diagnostic warning "-Wformat-nonliteral"
|
||||
|
||||
void ast_pjproject_log_intercept_begin(int fd)
|
||||
{
|
||||
|
Reference in New Issue
Block a user