mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
Fix clang 9 format-nonliteral warnings
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
13a2f70a4d
commit
8c17b6f82f
@ -791,7 +791,6 @@ int main(void) {
|
||||
conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Werror -Wno-error=deprecated-declarations', testflags=True)
|
||||
conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Wno-error=tautological-compare', testflags=True)
|
||||
conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Wno-error=cast-align', testflags=True)
|
||||
conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Wno-error=format-nonliteral', testflags=True)
|
||||
conf.ADD_NAMED_CFLAGS('PICKY_CFLAGS', '-Wno-error=for-loop-analysis', testflags=True)
|
||||
|
||||
if Options.options.fatal_errors:
|
||||
|
@ -3745,8 +3745,10 @@ static void test_ldb_add_to_index_unique_values_required(void **state)
|
||||
talloc_free(tmp_ctx);
|
||||
}
|
||||
|
||||
static void ldb_debug_string(void *context, enum ldb_debug_level level,
|
||||
const char *fmt, va_list ap)
|
||||
static void PRINTF_ATTRIBUTE(3, 0) ldb_debug_string(
|
||||
void *context,
|
||||
enum ldb_debug_level level,
|
||||
const char *fmt, va_list ap)
|
||||
{
|
||||
struct ldbtest_ctx *test_ctx =
|
||||
talloc_get_type_abort(context, struct ldbtest_ctx);
|
||||
|
@ -397,7 +397,7 @@ bool virusfilter_io_writel(
|
||||
return virusfilter_io_write(io_h, io_h->w_eol, io_h->w_eol_size);
|
||||
}
|
||||
|
||||
bool virusfilter_io_writefl(
|
||||
bool PRINTF_ATTRIBUTE(2, 3) virusfilter_io_writefl(
|
||||
struct virusfilter_io_handle *io_h,
|
||||
const char *data_fmt, ...)
|
||||
{
|
||||
@ -420,7 +420,7 @@ bool virusfilter_io_writefl(
|
||||
return virusfilter_io_write(io_h, data, data_size);
|
||||
}
|
||||
|
||||
bool virusfilter_io_vwritefl(
|
||||
bool PRINTF_ATTRIBUTE(2, 0) virusfilter_io_vwritefl(
|
||||
struct virusfilter_io_handle *io_h,
|
||||
const char *data_fmt, va_list ap)
|
||||
{
|
||||
@ -670,7 +670,7 @@ bool virusfilter_io_readl(TALLOC_CTX *ctx,
|
||||
return ok;
|
||||
}
|
||||
|
||||
bool virusfilter_io_writefl_readl(
|
||||
bool PRINTF_ATTRIBUTE(3, 4) virusfilter_io_writefl_readl(
|
||||
struct virusfilter_io_handle *io_h,
|
||||
char **read_line,
|
||||
const char *fmt, ...)
|
||||
|
@ -5870,7 +5870,7 @@ static int dsdb_count_domain_callback(
|
||||
*
|
||||
* @return LDB_STATUS code.
|
||||
*/
|
||||
int dsdb_domain_count(
|
||||
int PRINTF_ATTRIBUTE(6, 7) dsdb_domain_count(
|
||||
struct ldb_context *ldb,
|
||||
size_t *count,
|
||||
struct ldb_dn *base,
|
||||
|
Loading…
x
Reference in New Issue
Block a user