Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • tools
  • include
  • linux
  • err.h
Find file BlameHistoryPermalink
  • Jiri Olsa's avatar
    tools: Fix shadowed declaration in err.h · 45633a16
    Jiri Olsa authored Sep 29, 2015
    
    
    The error variable breaks build on CentOS 6.7, due to collision with
    global error symbol:
    
        CC       util/evlist.o
      cc1: warnings being treated as errors
      In file included from util/evlist.c:28:
      tools/include/linux/err.h: In function ‘ERR_PTR’:
      tools/include/linux/err.h:34: error: declaration of ‘error’ shadows a global declaration
      util/util.h:135: error: shadowed declaration is here
    
    Using 'error_' name instead to fix it.
    
    Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
    Link: http://lkml.kernel.org/n/tip-i9mdgdbrgauy3fe76s9rd125@git.kernel.org
    
    
    Reported-by: default avatarVinson Lee <vlee@twopensource.com>
    [ Use 'error_' instead of 'err' to, visually, not diverge too much from include/linux/err.h ]
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    45633a16
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7