Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 393
    • Issues 393
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Merge requests
  • !178

added static declaration for global objects that are createed and used in programs locally

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Sven-Bodo Scholz requested to merge sbs/sac2c:global-object-static into develop Feb 17, 2022
  • Overview 0
  • Commits 2
  • Changes 3

without it this lead to C compiler warnings:

/Volumes/Users/sbs/Dropbox/BodoSac/scan/a.out.c:1294:5: warning: no previous extern declaration for non-static variable 'SACo__MAIN__countTweakT'
      [-Wmissing-variable-declarations]
int SACo__MAIN__countTweakT;
    ^
/Volumes/Users/sbs/Dropbox/BodoSac/scan/a.out.c:1294:1: note: declare 'static' if the variable is not intended to be used outside of this
      translation unit
int SACo__MAIN__countTweakT;
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: global-object-static