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

Various warnings in flute #69

Open
robtaylor opened this issue Oct 14, 2023 · 0 comments
Open

Various warnings in flute #69

robtaylor opened this issue Oct 14, 2023 · 0 comments
Labels
good first issue Good for newcomers third party Issues in third party software

Comments

@robtaylor
Copy link
Collaborator

../../flute/src/3.1/flute.cpp:1474:27: warning: format specifies type 'int' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
        printf("%d %d\n", t.branch[i].x, t.branch[i].y);
                ~~        ^~~~~~~~~~~~~
                %lld
../../flute/src/3.1/flute.cpp:1474:42: warning: format specifies type 'int' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
        printf("%d %d\n", t.branch[i].x, t.branch[i].y);
                   ~~                    ^~~~~~~~~~~~~
                   %lld
../../flute/src/3.1/flute.cpp:1475:29: warning: format specifies type 'int' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
        printf("%d %d\n\n", t.branch[t.branch[i].n].x,
                ~~          ^~~~~~~~~~~~~~~~~~~~~~~~~
                %lld
../../flute/src/3.1/flute.cpp:1476:16: warning: format specifies type 'int' but the argument has type 'int64_t' (aka 'long long') [-Wformat]
               t.branch[t.branch[i].n].y);
               ^~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
[797/1078] Compiling C++ object flute/src/3.1/libflute.dylib.p/heap.cpp.o
../../flute/src/3.1/heap.cpp:28:17: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
      err_exit( "Cannot reallocate memory in allocate_heap!" );
                ^
1 warning generated.
[798/1078] Compiling C++ object flute/src/3.1/libflute.dylib.p/neighbors.cpp.o
../../flute/src/3.1/neighbors.cpp:44:17: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
      err_exit( "Cannot allocate memory in allocate_nn_arrays!" );
                ^
@robtaylor robtaylor added the good first issue Good for newcomers label Oct 14, 2023
@Coloquinte Coloquinte added the third party Issues in third party software label Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers third party Issues in third party software
Projects
None yet
Development

No branches or pull requests

2 participants