>From 3726823d042c8010390797d6a46e002dac783086 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 16 Aug 2020 13:00:57 +0200 Subject: [PATCH 11/13] Fix "warning: format specifies type 'unsigned long'". * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf argument to match the format directive. --- ChangeLog | 4 ++++ tests/test-nonblocking-writer.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d2b2277..c939272 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2020-08-16 Bruno Haible + Fix "warning: format specifies type 'unsigned long'". + * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf + argument to match the format directive. + Fix "warning: no case matching constant switch condition '0'". * tests/test-fcntl.c (check_flags): Add a 'default' case. diff --git a/tests/test-nonblocking-writer.h b/tests/test-nonblocking-writer.h index d579980..0cb4911 100644 --- a/tests/test-nonblocking-writer.h +++ b/tests/test-nonblocking-writer.h @@ -79,7 +79,7 @@ main_writer_loop (int test, size_t data_block_size, int fd, usleep (1000000); dbgfprintf (stderr, "%s:1: >> write (%lu)\n", PROG_ROLE, - (unsigned long) 2 * data_block_size); + (unsigned long) (2 * data_block_size)); START_TIMING ret = write (fd, data, 2 * data_block_size); saved_errno = errno; -- 2.7.4