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

Compilation warnings #374

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Compilation warnings #374

wants to merge 8 commits into from

Conversation

amdoku
Copy link

@amdoku amdoku commented Oct 3, 2020

When compiling with gcc-10.2.0 there are some warnings emitted.

The unit tests were failing when using gdb-9.2 and lldb-10.0.1 as the line would change from

error: error: use of undeclared identifier 'invalid_expr'

to

error: error: <user expression 3>:1:1: use of undeclared identifier 'invalid_expr'

This relaxes the test just enough to also work with older versions of gdb & lldb where this location information would not be included.

amdoku added 8 commits October 3, 2020 21:41
When compiling with gcc-10.2.0 this would emit a warning
When compiling under gcc-10.2.0 this line would emit a warning
When compiling under gcc-10.2.0 this would emit a warning
When compiling under gcc-10.2.0 this would emit a warning
By escaping the '?' it will no longer be detected as a trigraph.
When compiling all warnings will now be treated as an error, preventing
potentially misbehaving code from making it onto master.
When executing tests with gdb-9.2 and lldb-10.0.1 the tests would fail.
Relaxing the error assertion to only check for the warning itself, not
the location fixes the test.
@codecov-commenter
Copy link

codecov-commenter commented Oct 3, 2020

Codecov Report

Merging #374 into master will decrease coverage by 0.53%.
The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #374      +/-   ##
==========================================
- Coverage   79.53%   79.00%   -0.54%     
==========================================
  Files          33       33              
  Lines        4744     4743       -1     
==========================================
- Hits         3773     3747      -26     
- Misses        971      996      +25     
Impacted Files Coverage Δ
src/llscan.cc 59.41% <50.00%> (ø)
src/printer.cc 81.27% <66.66%> (+0.12%) ⬆️
src/llv8.cc 71.71% <100.00%> (-2.29%) ⬇️
test/plugin/scan-test.js 98.97% <100.00%> (ø)
src/llv8.h 81.81% <0.00%> (-2.28%) ⬇️
src/llv8-constants.h 97.05% <0.00%> (-1.48%) ⬇️
src/llv8-inl.h 90.42% <0.00%> (-0.82%) ⬇️
src/llv8-constants.cc 85.92% <0.00%> (-0.76%) ⬇️

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 4b868f7...9030cd7. Read the comment docs.

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.

2 participants