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

clang-40 warnings #26

Open
yurivict opened this issue Nov 13, 2017 · 0 comments
Open

clang-40 warnings #26

yurivict opened this issue Nov 13, 2017 · 0 comments

Comments

@yurivict
Copy link

yurivict commented Nov 13, 2017

Revision 9c7049a has these warnings:

/usr/ports/math/ambit/work/ambit-0.2-37-g9c7049a/src/tensor/print.cc:63:24: warning: passing an object of reference type to 'va_start' has undefined behavior [-Wvarargs]
        va_start(args, format);
                       ^
/usr/ports/math/ambit/work/ambit-0.2-37-g9c7049a/src/tensor/print.cc:58:26: note: parameter of type 'const string &' (aka 'const basic_string<char, char_traits<char>, allocator<char> > &') is declared here
void print(const string &format, ...)
                         ^
/usr/ports/math/ambit/work/ambit-0.2-37-g9c7049a/src/tensor/print.cc:78:28: warning: passing an object of reference type to 'va_start' has undefined behavior [-Wvarargs]
            va_start(args, format);
                           ^
/usr/ports/math/ambit/work/ambit-0.2-37-g9c7049a/src/tensor/print.cc:70:27: note: parameter of type 'const string &' (aka 'const basic_string<char, char_traits<char>, allocator<char> > &') is declared here
void printn(const string &format, ...)
                          ^
/usr/ports/math/ambit/work/ambit-0.2-37-g9c7049a/src/tensor/timer.cc:113:18: warning: format specifies type 'long long' but the argument has type 'typename enable_if<__is_duration<duration<long long, ratio<1, 1000> > >::value, duration<long long, ratio<1, 1000> > >::type' (aka 'std::__1::chrono::duration<long long, std::__1::ratio<1, 1000> >') [-Wformat]
                 std::chrono::duration_cast<std::chrono::milliseconds>(
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/ports/math/ambit/work/ambit-0.2-37-g9c7049a/src/tensor/timer.cc:115:18: warning: format specifies type 'long long' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
                 timer->total_calls,
                 ^~~~~~~~~~~~~~~~~~
/usr/ports/math/ambit/work/ambit-0.2-37-g9c7049a/src/tensor/timer.cc:116:18: warning: format specifies type 'long long' but the argument has type 'typename __duration_divide_result<duration<long long, ratio<1, 1000> >, unsigned long>::type' (aka 'duration<unsigned long long, std::__1::ratio<1, 1000> >') [-Wformat]
                 std::chrono::duration_cast<std::chrono::milliseconds>(
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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