Re: [PATCH] test_rhashtable: avoid gcc-8 -Wformat-overflow warning

2018-03-13 Thread Martin Sebor
On 03/13/2018 07:21 AM, Arnd Bergmann wrote: gcc-8 warns about a code pattern that is used in the newly added test_rhashtable code: lib/test_rhashtable.c: In function 'print_ht': lib/test_rhashtable.c:511:21: error: ' bucket[' directive writing 8 bytes into a region of size between 1 and 512 [-

Re: [PATCH] test_rhashtable: avoid gcc-8 -Wformat-overflow warning

2018-03-13 Thread Arnd Bergmann
On Tue, Mar 13, 2018 at 3:41 PM, Rasmus Villemoes wrote: > On 2018-03-13 14:21, Arnd Bergmann wrote: >> gcc-8 warns about a code pattern that is used in the newly added >> test_rhashtable code: >> >> lib/test_rhashtable.c: In function 'print_ht': >> lib/test_rhashtable.c:511:21: error: ' >> bucket

Re: [PATCH] test_rhashtable: avoid gcc-8 -Wformat-overflow warning

2018-03-13 Thread Rasmus Villemoes
On 2018-03-13 14:21, Arnd Bergmann wrote: > gcc-8 warns about a code pattern that is used in the newly added > test_rhashtable code: > > lib/test_rhashtable.c: In function 'print_ht': > lib/test_rhashtable.c:511:21: error: ' > bucket[' directive writing 8 bytes into a region of size between 1 and

[PATCH] test_rhashtable: avoid gcc-8 -Wformat-overflow warning

2018-03-13 Thread Arnd Bergmann
gcc-8 warns about a code pattern that is used in the newly added test_rhashtable code: lib/test_rhashtable.c: In function 'print_ht': lib/test_rhashtable.c:511:21: error: ' bucket[' directive writing 8 bytes into a region of size between 1 and 512 [-Werror=format-overflow=] sprintf(buff, "%s\