Re: [PATCH] tools: Fix str_error_r() Werror=restrict build

2018-03-19 Thread Sergey Senozhatsky
On (03/19/18 11:16), Arnaldo Carvalho de Melo wrote: > Em Mon, Mar 19, 2018 at 02:55:04PM +0900, Sergey Senozhatsky escreveu: > > Commit c8b5f2c96d1bf6c ("tools: Introduce str_error_r()") added > > an str_error_r() wrapper which makes gcc8 unhappy due to > > restrict-qualified parameter aliasing vi

Re: [PATCH] tools: Fix str_error_r() Werror=restrict build

2018-03-19 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 19, 2018 at 02:55:04PM +0900, Sergey Senozhatsky escreveu: > Commit c8b5f2c96d1bf6c ("tools: Introduce str_error_r()") added > an str_error_r() wrapper which makes gcc8 unhappy due to > restrict-qualified parameter aliasing violation: > > ../lib/str_error_r.c: In function ‘str_error_r’

Re: [PATCH] tools: Fix str_error_r() Werror=restrict build

2018-03-19 Thread Sergey Senozhatsky
On (03/19/18 08:18), Jiri Olsa wrote: > On Mon, Mar 19, 2018 at 02:55:04PM +0900, Sergey Senozhatsky wrote: > > Commit c8b5f2c96d1bf6c ("tools: Introduce str_error_r()") added > > an str_error_r() wrapper which makes gcc8 unhappy due to > > restrict-qualified parameter aliasing violation: > > > >

Re: [PATCH] tools: Fix str_error_r() Werror=restrict build

2018-03-19 Thread Jiri Olsa
On Mon, Mar 19, 2018 at 02:55:04PM +0900, Sergey Senozhatsky wrote: > Commit c8b5f2c96d1bf6c ("tools: Introduce str_error_r()") added > an str_error_r() wrapper which makes gcc8 unhappy due to > restrict-qualified parameter aliasing violation: > > ../lib/str_error_r.c: In function ‘str_error_r’: >

[PATCH] tools: Fix str_error_r() Werror=restrict build

2018-03-18 Thread Sergey Senozhatsky
Commit c8b5f2c96d1bf6c ("tools: Introduce str_error_r()") added an str_error_r() wrapper which makes gcc8 unhappy due to restrict-qualified parameter aliasing violation: ../lib/str_error_r.c: In function ‘str_error_r’: ../lib/str_error_r.c:25:3: error: passing argument 1 to restrict-qualified par