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

Tests: warning: ISO C90 does not support ‘long long’ [-Wlong-long] #348

Closed
notorand-it opened this issue May 8, 2015 · 1 comment
Closed
Labels

Comments

@notorand-it
Copy link

While running "make check" I get these warnings:

test/test-platform-output.c: In function ‘run_test_platform_output’:
test/test-platform-output.c:50:59: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
   printf("uv_resident_set_memory: %llu\n", (unsigned long long) rss);
                                                           ^
test/test-platform-output.c:50:3: warning: ISO C90 does not support the ‘ll’ gnu_printf length modifier [-Wformat=]
   printf("uv_resident_set_memory: %llu\n", (unsigned long long) rss);
   ^
test/test-platform-output.c:65:25: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
          (unsigned long long) rusage.ru_utime.tv_sec,
                         ^
test/test-platform-output.c:66:25: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
          (unsigned long long) rusage.ru_utime.tv_usec);
                         ^
test/test-platform-output.c:66:10: warning: ISO C90 does not support the ‘ll’ gnu_printf length modifier [-Wformat=]
          (unsigned long long) rusage.ru_utime.tv_usec);
          ^
test/test-platform-output.c:66:10: warning: ISO C90 does not support the ‘ll’ gnu_printf length modifier [-Wformat=]
test/test-platform-output.c:68:25: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
          (unsigned long long) rusage.ru_stime.tv_sec,
                         ^
test/test-platform-output.c:69:25: warning: ISO C90 does not support ‘long long’ [-Wlong-long]
          (unsigned long long) rusage.ru_stime.tv_usec);
                         ^
...

I presume a higher standard (-std= option) needs to be used at least for tests.

@saghul saghul changed the title [v1.5.0] warning: ISO C90 does not support ‘long long’ [-Wlong-long] Tests: warning: ISO C90 does not support ‘long long’ [-Wlong-long] May 8, 2015
@saghul saghul added the test label May 8, 2015
@kthelgason
Copy link
Contributor

I think this issue can be closed. It's a duplicate of #850

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants