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

Cosmetic change: warnings in test suite #54

Closed
dfateyev opened this issue Feb 5, 2016 · 2 comments
Closed

Cosmetic change: warnings in test suite #54

dfateyev opened this issue Feb 5, 2016 · 2 comments

Comments

@dfateyev
Copy link
Contributor

dfateyev commented Feb 5, 2016

Some new warnings are expected to be fixed in the future:

libtool: link: gcc -I./ -Wall -Wsign-compare -Wextra -Wshadow -Wsystem-headers -Wdeclaration-after-statement -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wpointer-arith -fprofile-arcs -ftest-coverage -DTIMING_NO_LOGS -DTIMER demo/timing.c -o .libs/ltmtest  -lgcov ./.libs/libtommath.so
demo/timing.c: In function 'main':
demo/timing.c:125:11: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
    printf("CLK_PER_SEC == %llu\n", CLK_PER_SEC);
           ^
demo/timing.c:140:14: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
       printf("Adding\t\t%4d-bit => %9llu/sec, %9llu cycles\n",
              ^
demo/timing.c:140:14: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
demo/timing.c:162:14: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
       printf("Subtracting\t\t%4d-bit => %9llu/sec, %9llu cycles\n",
              ^
demo/timing.c:162:14: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
demo/timing.c:197:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
   printf("Multiplying\t%4d-bit => %9llu/sec, %9llu cycles\n",
          ^
demo/timing.c:197:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
demo/timing.c:217:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
   printf("Squaring\t%4d-bit => %9llu/sec, %9llu cycles\n",
          ^
demo/timing.c:217:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
demo/timing.c:293:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
   printf("Exponentiating\t%4d-bit => %9llu/sec, %9llu cycles\n",
          ^
demo/timing.c:293:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
demo/timing.c:329:14: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
       printf("Inverting mod\t%4d-bit => %9llu/sec, %9llu cycles\n",
              ^
demo/timing.c:329:14: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
@sjaeckel
Copy link
Member

sjaeckel commented Feb 5, 2016

cough 1.0.1 cough

:-P

@hikari-no-yume
Copy link
Contributor

Ah yeah, we shouldn't use "foo %9llu bar", but rather "foo %9" PRIu64 " bar", using inttypes.h.

sjaeckel added a commit that referenced this issue Oct 14, 2017
sjaeckel added a commit that referenced this issue Oct 15, 2017
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

3 participants