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

Remove optimisation for na.strings = "" from fread.c #5399

Closed
wants to merge 2 commits into from

Conversation

tlapak
Copy link
Contributor

@tlapak tlapak commented Jun 2, 2022

Closes #5377

@MichaelChirico
Copy link
Member

I think it warrants a NEWS item. Do we have -Waddress set in any CI that could have caught this sooner? GitLab?

@tlapak
Copy link
Contributor Author

tlapak commented Jun 3, 2022

I'm not fighting a NEWS item but the code never did anything as the comparison was already folded to false.

It's not about -Waddress so much as GCC 12.1 which was only released in May. I'm pretty sure R CMD build sets -Wall. If I read the discussion right, Clang also misses it.

@tlapak
Copy link
Contributor Author

tlapak commented Jun 12, 2022

I've added a news item.

Seems Codecov has decided to take a look after all. It's complaining because I removed a covered line which technically decreases coverage.

@codecov
Copy link

codecov bot commented Jun 12, 2022

Codecov Report

Merging #5399 (c24721a) into master (e9a323d) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head c24721a differs from pull request most recent head 6074701. Consider uploading reports for the commit 6074701 to get more accurate results

@@            Coverage Diff             @@
##           master    #5399      +/-   ##
==========================================
- Coverage   99.51%   99.51%   -0.01%     
==========================================
  Files          78       78              
  Lines       14756    14755       -1     
==========================================
- Hits        14684    14683       -1     
  Misses         72       72              
Impacted Files Coverage Δ
src/fread.c 99.41% <100.00%> (-0.01%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9a323d...6074701. Read the comment docs.

@mattdowle
Copy link
Member

Thanks @tlapak. I did this in #5476 a bit differently by retaining the optimization and putting it later outside the loop with better comments.

@mattdowle mattdowle closed this Oct 6, 2022
@mattdowle mattdowle deleted the fread_fix_NULL_comparison branch October 6, 2022 17: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.

CRAN Warning on r-devel-linux-x86_64-debian-gcc
3 participants