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
  • scripts
  • sortextable.h
Find file BlameHistoryPermalink
  • Tim Gardner's avatar
    scripts/sortextable: suppress warning: `relocs_size' may be used uninitialized · 2b12afab
    Tim Gardner authored Oct 13, 2014
    commit 7cbc0ea7
    
     upstream.
    
    In file included from scripts/sortextable.c:194:0:
    scripts/sortextable.c: In function `main':
    scripts/sortextable.h:176:3: warning: `relocs_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
       memset(relocs, 0, relocs_size);
       ^
    scripts/sortextable.h:106:6: note: `relocs_size' was declared here
      int relocs_size;
          ^
    In file included from scripts/sortextable.c:192:0:
    scripts/sortextable.h:176:3: warning: `relocs_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
       memset(relocs, 0, relocs_size);
       ^
    scripts/sortextable.h:106:6: note: `relocs_size' was declared here
      int relocs_size;
          ^
    
    gcc 4.9.1
    
    Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
    Reviewed-by: default avatarJamie Iles <jamie.iles@oracle.com>
    
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    Cc: Kamal Mostafa <kamal@canonical.com>
    Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
    2b12afab
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7