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 false-positive compiler warning #3857

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

rouault
Copy link
Member

@rouault rouault commented Aug 24, 2023

Fixes the following false-positive warning of gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 in -m32 mode:

/home/even/proj/proj/src/4D_api.cpp: In function 'int cs2cs_emulation_setup(PJ*)':
/home/even/proj/proj/src/4D_api.cpp:949:64: warning: '%s' directive output between 9 and 2147483645 bytes may cause result to exceed 'INT_MAX' [-Wformat-truncation=]
  949 |                  "break_cs2cs_recursion     proj=helmert exact %s "
      |

Fixes the following false-positive warning of gcc (Ubuntu 11.4.0-1ubuntu1~22.04)
11.4.0 in -m32 mode:
```
/home/even/proj/proj/src/4D_api.cpp: In function 'int cs2cs_emulation_setup(PJ*)':
/home/even/proj/proj/src/4D_api.cpp:949:64: warning: '%s' directive output between 9 and 2147483645 bytes may cause result to exceed 'INT_MAX' [-Wformat-truncation=]
  949 |                  "break_cs2cs_recursion     proj=helmert exact %s "
      |
```
@rouault rouault merged commit b132ad6 into OSGeo:master Aug 24, 2023
21 checks passed
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

Successfully merging this pull request may close these issues.

1 participant