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

Fix warning messages during compilation #23

Open
xirius opened this issue Oct 12, 2017 · 0 comments
Open

Fix warning messages during compilation #23

xirius opened this issue Oct 12, 2017 · 0 comments

Comments

@xirius
Copy link

xirius commented Oct 12, 2017

Hi, I have few warning messages during compilation (clang++). It would be nice to fix them.


NanoLog/NanoLog.cpp:57:34: warning: format specifies type 'unsigned long long' but the argument has type 'unsigned long' [-Wformat]
sprintf(microseconds, "%06llu", timestamp % 1000000);
                       ~~~~~~   ^~~~~~~~~~~~~~~~~~~
                       %06lu
NanoLog/NanoLog.cpp:349:11: warning: braces around scalar initializer [-Wbraced-scalar-init]
: flag{ATOMIC_FLAG_INIT}
       ^~~~~~~~~~~~~~~~
.../include/c++/6.3.0/bits/atomic_base.h:157:26: note: expanded from macro 'ATOMIC_FLAG_INIT'
#define ATOMIC_FLAG_INIT { 0 }
                         ^~~~~
NanoLog/NanoLog.cpp:484:15: warning: braces around scalar initializer [-Wbraced-scalar-init]
, m_flag{ATOMIC_FLAG_INIT}
         ^~~~~~~~~~~~~~~~
.../include/c++/6.3.0/bits/atomic_base.h:157:26: note: expanded from macro 'ATOMIC_FLAG_INIT'
#define ATOMIC_FLAG_INIT { 0 }
                         ^~~~~
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

No branches or pull requests

1 participant