Skip to content
Snippets Groups Projects
Commit 3b5aee3f authored by Petter Reinholdtsen's avatar Petter Reinholdtsen
Browse files

Dropped self assignment when initialising variables in tokenize.c.

The 'int x=x' style statement do not make sense and cause problems with
some compilers.  Replace it with more sensible initializers to ensure
the value have a well known starting point.  Using initializers
proposed by Timothy B. Terriberry in !25.

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

Fixes #2317
parent b51ac556
No related branches found
No related tags found
1 merge request!25Dropped self assignment when initialising variables in tokenize.c.
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment