Bug 198299

Summary: -Werror=restrict in objtool at pager.c:36:12
Product: Tools Reporter: Martin Liška (mliska)
Component: OtherAssignee: Tools.Other (tools_other)
Status: RESOLVED CODE_FIX    
Severity: normal CC: acme, haitham.albagdady, jolsa
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: master Subsystem:
Regression: No Bisected commit-id:

Description Martin Liška 2017-12-28 11:32:31 UTC
As -Wrestrict is default in -Wall starting from GCC 8.0, I spotted:

  CC       /home/marxin/BIG/Programming/linux/tools/objtool/pager.o
pager.c: In function ‘pager_preexec’:
pager.c:36:12: error: passing argument 2 to restrict-qualified parameter aliases with argument 4 [-Werror=restrict]
  select(1, &in, NULL, &in, NULL);
            ^~~        ~~~
cc1: all warnings being treated as errors
Comment 1 Martin Liška 2018-04-20 08:38:24 UTC
It's fixed.
Comment 2 haitham.albagdady 2024-02-22 08:53:50 UTC
(In reply to Martin Liška from comment #1)
> It's fixed.

How did you fixed it}