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

Compiler warning in linux for mpz/tests/t-get_sx #115

Closed
wbhart opened this issue Mar 28, 2014 · 1 comment
Closed

Compiler warning in linux for mpz/tests/t-get_sx #115

wbhart opened this issue Mar 28, 2014 · 1 comment

Comments

@wbhart
Copy link
Owner

wbhart commented Mar 28, 2014

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../tests    -m64 -O2 -c t-get_sx.c
t-get_sx.c: In function 'check_max':
t-get_sx.c:121:3: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'intmax_t' [-Wformat]
t-get_sx.c:121:3: warning: format '%llX' expects argument of type 'long long unsigned int', but argument 3 has type 'intmax_t' [-Wformat]
t-get_sx.c:121:3: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'intmax_t' [-Wformat]
t-get_sx.c:121:3: warning: format '%llX' expects argument of type 'long long unsigned int', but argument 3 has type 'intmax_t' [-Wformat]
t-get_sx.c:126:3: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'intmax_t' [-Wformat]
t-get_sx.c:126:3: warning: format '%llX' expects argument of type 'long long unsigned int', but argument 3 has type 'intmax_t' [-Wformat]
t-get_sx.c:126:3: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'intmax_t' [-Wformat]
t-get_sx.c:126:3: warning: format '%llX' expects argument of type 'long long unsigned int', but argument 3 has type 'intmax_t' [-Wformat]
t-get_sx.c:135:3: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'intmax_t' [-Wformat]
t-get_sx.c:135:3: warning: format '%llX' expects argument of type 'long long unsigned int', but argument 3 has type 'intmax_t' [-Wformat]
t-get_sx.c:135:3: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'intmax_t' [-Wformat]
t-get_sx.c:135:3: warning: format '%llX' expects argument of type 'long long unsigned int', but argument 3 has type 'intmax_t' [-Wformat]
@wbhart wbhart modified the milestone: MPIR 2.7.0 Mar 28, 2014
@wbhart
Copy link
Owner Author

wbhart commented Mar 31, 2014

Can't fix these because MSVC doesn't support the correct format specifiers as specified by the C standard.

@wbhart wbhart closed this as completed Sep 28, 2018
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