Skip to content

Warning fixes#1

Open
pwithnall wants to merge 4 commits into
ldthomas:masterfrom
pwithnall:warning-fixes
Open

Warning fixes#1
pwithnall wants to merge 4 commits into
ldthomas:masterfrom
pwithnall:warning-fixes

Conversation

@pwithnall
Copy link
Copy Markdown

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
Copy Markdown
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