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

build warning #304

Closed
DStrelak opened this issue Jul 21, 2020 · 1 comment · Fixed by #305
Closed

build warning #304

DStrelak opened this issue Jul 21, 2020 · 1 comment · Fixed by #305
Assignees

Comments

@DStrelak
Copy link
Collaborator

g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

libraries/reconstruction/nma_alignment_vol.cpp: In member function 'virtual double ObjFunc_nma_alignment_vol::eval(Vector, int*)':
libraries/reconstruction/nma_alignment_vol.cpp:276:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   fscanf(global_nma_vol_prog->AnglesShiftsAndScore, "%f,", &global_nma_vol_prog->fit_value);
   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libraries/reconstruction/nma_alignment_vol.cpp:293:16: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
          fscanf(global_nma_vol_prog->AnglesShiftsAndScore, "%f,", &global_nma_vol_prog->Best_Angles_Shifts[i]);
          ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Didn't we have this warning before?

@MohamadHarastani
Copy link
Collaborator

I didn't notice this warning before. We had another warning for the same reason here. I will take a look at the fix and do something similar asap.

@MohamadHarastani MohamadHarastani linked a pull request Jul 22, 2020 that will close this issue
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 a pull request may close this issue.

2 participants