-
Notifications
You must be signed in to change notification settings - Fork 145
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
Fix/no cx11 warning #18
Fix/no cx11 warning #18
Conversation
* According to clang finishing an enum with a comma is a C++11 extension * it doesn't seem worth a compiler warning for one comma!
* apparently unsigned long long is a C++11 extension and is only guaranteed to be >=64 bits * so use uint64_t which exists since C99
* clang -Wall -pedantic actually complains about these * I no longer see any compiler warnings
ff89332
to
db2a97d
Compare
@simonlynen: apologies I did a |
|
@@ -140,7 +140,7 @@ namespace boost | |||
*/ | |||
struct timer | |||
{ | |||
typedef unsigned long long Time; | |||
typedef uint64_t Time; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add an include for <cstdint>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or <stdint.h>
for c++03
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha. Sorry. I wondered about that but I didn't get a complaint. Strange. And I know that you need <stdint.h>
vs <cstdint>
depending on standard.
@jefferis Adding the include should fix the build. Otherwise this looks good to me. |
* missed because I forgot to make clean (ahem)
* I missed this because on my setup Eigen/Core (which is included by nabo.h) ensures that this is available.
lgtm |
This branch removes all warnings with
-std=c++03 -Wall -pedantic
at least for Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn).