Skip to content
Snippets Groups Projects

Dropped self assignment when initialising variables in tokenize.c.

Merged Petter Reinholdtsen requested to merge no-self-assign into master

The 'int x=x' style statement do not make sense and cause problems with some compilers. Replace it with 'int x=0' to ensure the value have a well known starting point.

Added -Werror=uninitialized -Winit-self to default GCC build to ensure this style of statement do not sneak into the code again.

Fixes #2317 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading