Skip to content
This repository was archived by the owner on Nov 4, 2023. It is now read-only.

Fix compiler errors introduced by newer compilers #10

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

Conversation

kylemanna
Copy link

Build fails on my Arch Linux system with gcc-5.2.0 and clang-3.6.2.

Fixes:

  • Obvious signedness issues
  • Less obvious signedness issues
  • Gtest is no longer a semi-integrated monolith (and missing header for that matter) and use the system gtest library ( resolves gtest: vendor and update to 1.7.0 #8 )
  • Add missing libraries to link against
  • Remove unused variables

All unit tests succeed for both compilers. 🎉

* Rip out the gtest built in here.  Use the system library.
* Test against gtest-1.7.0-1 on Arch Linux
* Add the missing -lpthread library
* These should be easily verified as correct.
* Tested on gcc-5.2.0 and clang-3.6.2
* Never referenced and generate warnings on modern compilers
* Tested on gcc-5.2.0 and clang-3.6.2
* Later versions of compilers/pre-processors are upset about the syntax
* Bracket unterminated string with proper comment tags
* My compilers mark these as errors
* Attempt to be more correct
* Tested on gcc-5.2.0 and clang-3.6.2
* Return null when appropriate and assign a value earlier.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant