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

WIP: Reduce warnings #3139

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

WIP: Reduce warnings #3139

wants to merge 3 commits into from

Conversation

alkino
Copy link
Member

@alkino alkino commented Oct 21, 2024

No description provided.

Copy link

✔️ 99bb35b -> Azure artifacts URL

Copy link
Member

@nrnhines nrnhines left a comment

Choose a reason for hiding this comment

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

I'm generally in favor of this. I reviewed the first 34 files but am not sure I did not make mistakes. What I notice is that occasionally an unused variable is used in a commented out line or false #if block. Generally for debugging. Or an error return is ignored. I wonder if these should be preserved for later decisions about what to do about them.

@@ -3065,8 +3064,7 @@ void PreSyn::deliver(double tt, NetCvode* ns, NrnThread* nt) {
TQItem* q = ns->p[i].tq_->least();
Cvode* cv = (Cvode*) q->data_;
if (tt < cv->t_) {
int err = NVI_SUCCESS;
err = cv->handle_step(nrn_ensure_model_data_are_sorted(), ns, tt);
cv->handle_step(nrn_ensure_model_data_are_sorted(), ns, tt);
Copy link
Member

Choose a reason for hiding this comment

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

handle_step does return an error status. Should we print a warning if not NVI_SUCCESS?

Copy link
Member Author

Choose a reason for hiding this comment

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

Could you write me a message for that?

src/nrncvode/nrndaspk.cpp Outdated Show resolved Hide resolved
src/nrncvode/nrndaspk.cpp Outdated Show resolved Hide resolved
src/nrncvode/nrndaspk.cpp Outdated Show resolved Hide resolved
src/nrniv/multisend.cpp Outdated Show resolved Hide resolved
Copy link

✔️ 655a4f4 -> Azure artifacts URL

@bbpbuildbot

This comment has been minimized.

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 67.17%. Comparing base (d52f6ae) to head (d26ea08).

Files with missing lines Patch % Lines
src/parallel/ocbbs.cpp 60.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3139   +/-   ##
=======================================
  Coverage   67.17%   67.17%           
=======================================
  Files         573      573           
  Lines      111436   111429    -7     
=======================================
  Hits        74855    74855           
+ Misses      36581    36574    -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

✔️ 4c2f419 -> Azure artifacts URL

@bbpbuildbot

This comment has been minimized.

@alkino alkino changed the title Reduce warnings WIP: Reduce warnings Oct 30, 2024
Copy link

sonarcloud bot commented Oct 30, 2024

Copy link

✔️ 185b496 -> Azure artifacts URL

Copy link

✔️ d26ea08 -> Azure artifacts URL

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.

3 participants