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

Further code cleanup #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sambrightman
Copy link

@sambrightman sambrightman commented Dec 9, 2016

This fixes all build errors on Mac except for warnings about deprecation of gamma. gamma is not supposed to be in math.h and is now marked deprecated but still clashes with the version in FREEC. This means Mac builds use the wrong function – could potentially fix by renaming the FREEC one?

Linux builds still have quite a few warnings about set but not used variables and uninitiallized variables. Not 100% clear to me what the intention is for them so have left that alone for now.

I have not tested these changes.

  • convert some CR/LF line endings to LF
  • be explicit about assignment operations within conditionals
  • remove some unused variables
  • add const to string literal argument types

Helps fix #11.

* convert some CR/LF line endings to LF
* be explicit about assignment operations within conditionals
* remove some unused variables
* add const to string literal argument types

Helps fix BoevaLab#11.
@valeu
Copy link
Contributor

valeu commented Dec 9, 2016

Some unused variables were still present in the code for debug purposes.

@sambrightman
Copy link
Author

Do you mean you want to keep the ones removed in this PR, or "set but not used" ones I mentioned on GCC warns about on Linux?

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.

Build warnings, potential bugs
2 participants