Bug 198299 - -Werror=restrict in objtool at pager.c:36:12
Summary: -Werror=restrict in objtool at pager.c:36:12
Status: RESOLVED CODE_FIX
Alias: None
Product: Tools
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Tools.Other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-28 11:32 UTC by Martin Liška
Modified: 2024-02-22 08:53 UTC (History)
3 users (show)

See Also:
Kernel Version: master
Subsystem:
Regression: No
Bisected commit-id:


Attachments

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}

Note You need to log in before you can comment on or make changes to this bug.