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

obj: add Wswitch-default warning flag #2858

Merged
merged 1 commit into from
Apr 16, 2018

Conversation

mbiesek
Copy link

@mbiesek mbiesek commented Apr 14, 2018

Intention of this PR is to extend diagnostic during compilation.
Wswitch-default is responsible to point a place where switch statement do not have a default case, which might lead to complex logical errors and resultant weaknesses.
This warning is currently disabled in project.
In any case any feedback will be appreciated.


This change is Reviewable

@codecov-io
Copy link

Codecov Report

Merging #2858 into master will decrease coverage by 0.01%.
The diff coverage is 9.09%.

@@            Coverage Diff             @@
##           master    #2858      +/-   ##
==========================================
- Coverage   77.14%   77.12%   -0.02%     
==========================================
  Files         175      175              
  Lines       25206    25216      +10     
==========================================
+ Hits        19444    19447       +3     
- Misses       5762     5769       +7

@krzycz
Copy link
Contributor

krzycz commented Apr 15, 2018

:lgtm:


Reviewed 13 of 13 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

ERR("invalid destination size %zu", dest_size);
errno = EINVAL;
return -1;
break;
Copy link
Contributor

Choose a reason for hiding this comment

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

return followed by break? :)

Copy link
Author

Choose a reason for hiding this comment

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

Done.

@mbiesek mbiesek force-pushed the feat-switch-default-case branch from 5d0ca75 to 0e7c375 Compare April 16, 2018 17:36
@krzycz
Copy link
Contributor

krzycz commented Apr 16, 2018

Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


Comments from Reviewable

@krzycz krzycz merged commit 0118e11 into pmem:master Apr 16, 2018
@mbiesek mbiesek deleted the feat-switch-default-case branch April 16, 2018 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants