Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning update #2508

Merged
merged 2 commits into from
Jun 5, 2018
Merged

Warning update #2508

merged 2 commits into from
Jun 5, 2018

Conversation

ChrisJefferson
Copy link
Contributor

@ChrisJefferson ChrisJefferson commented Jun 4, 2018

This updates the list of warnings we use to the latest version, keeping our modifications.

I also disable -Wswitch-enum, as it doesn't let you use 'default' in a switch.

EDIT: There is one warning i needed to fix. This commit first had a big giant diff, now I have a much smaller one. While this does make this function slightly worse (i think), the warning is generally useful so I'd like to keep it.

This is necessary to avoid a warning about jumping over these
declarations with 'goto finish;'
@codecov
Copy link

codecov bot commented Jun 4, 2018

Codecov Report

Merging #2508 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2508      +/-   ##
==========================================
+ Coverage   74.41%   74.41%   +<.01%     
==========================================
  Files         481      481              
  Lines      244613   244613              
==========================================
+ Hits       182033   182035       +2     
+ Misses      62580    62578       -2
Impacted Files Coverage Δ
src/scanner.c 92.79% <100%> (ø) ⬆️
hpcgap/lib/hpc/stdtasks.g 64.7% <0%> (+0.51%) ⬆️

Copy link
Member

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is missing labels.

@@ -69,12 +77,9 @@ AC_DEFUN([AX_COMPILER_FLAGS_CFLAGS],[
-Wall dnl
-Wextra dnl
-Wundef dnl
-Wnested-externs dnl
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First thought this got remove, but apparently it was just moved to a C specific section (though we always use a C compiler anyway, don't we?!?)

@@ -461,7 +463,7 @@ static UInt GetNumber(Int readDecimalPoint)
}

// If the next thing is the start of the exponential notation, read it now.
UInt seenExp = 0;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is that change necessary?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, nevermind, it's explained in the commit message.

@ChrisJefferson ChrisJefferson added topic: kernel release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes labels Jun 5, 2018
@fingolfin fingolfin merged commit da3a755 into gap-system:master Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes topic: kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants