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

Warning fixes #1

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

Conversation

pwithnall
Copy link

Compiler warning fixes from compiling on Fedora 25 (automake 1.15, gcc 6.2.1).

These are defined already on some systems (for example, as std::min and
std::max in C++), which was causing compilation of CppDemo to fail. Move
min() and max() to the APG namespace so as to not trample on the global
namespace.
These files are generated by the build system; having them in git just
means pointless git churn every time someone builds with a different
version of autotools.
This fixes a compiler warning with -Wnarrowing. Changing the type of the
entire array is fine, since all users of the ulData arrays convert them
to another type first.
@ldthomas
Copy link
Owner

ldthomas commented Dec 6, 2016

Thanks for your observations on this and your suggested fixes. It's been a couple of years since I've done any C work of any kind. I'm pretty rusty with it and in the middle of other things at the moment. It may be a while but eventually I'll get my C environment up and running again and check this out on my system and fix or merge.

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