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

too many arguments for format string (develop branch) #1

Closed
wants to merge 9 commits into from

Conversation

peterjc
Copy link
Owner

@peterjc peterjc commented May 30, 2018

Recreation of pull request PacificBiosciences#640 but against the develop branch rather than the master branch.

Spotted via the compiler warnings trying to build FALCON locally,

src/c/DW_banded.c: In function ‘my_calloc’:
src/c/DW_banded.c:109:17: warning: too many arguments for format [-Wformat-extra-args]
                 msg, nitems, size, lineno);
                 ^

This change expands the logging to record the line number argument.
The message could be logged too, but might be long, so I have included
the ellipse in the message to indicate there is another argument to
calloc not being recorded.

Herb Maeder and others added 9 commits October 11, 2017 13:53
…-short_5_1_0_snapshot14739, RBS-DEVSMRTLINKSHORT-1235)
…-short_5_1_0_snapshot14847, RBS-DEVSMRTLINKSHORT-1243)
…-short_5_1_0_snapshot16143, RBS-DEVSMRTLINKSHORT-1243)
…short_5_1_0_snapshot17490, RBS-DEVSMRTLINKSHORT-1393)
…-short_5_2_0_snapshot28247, RBS-DEVSMRTLINKSHORT-2241)
…-short_5_2_0_snapshot30147, RBS-DEVSMRTLINKSHORT-2334)
…-short_5_2_0_snapshot31622, RBS-DEVSMRTLINKSHORT-2432)
…-incremental_5_2_0_snapshot33240, RBS-DEVSMRTLINKINC-6751)
Spotted via the compiler warnings trying to build FALCON locally,

```
src/c/DW_banded.c: In function ‘my_calloc’:
src/c/DW_banded.c:109:17: warning: too many arguments for format [-Wformat-extra-args]
                 msg, nitems, size, lineno);
                 ^
```

This change expands the logging to record the line number argument.
The message could be logged too, but might be long, so I have included
the ellipse in the message to indicate there is another argument to
calloc not being recorded.
@peterjc
Copy link
Owner Author

peterjc commented May 30, 2018

Closing, will make a new branch from develop instead.

@peterjc peterjc closed this May 30, 2018
@peterjc
Copy link
Owner Author

peterjc commented May 30, 2018

Managed to make this pull request against my own fork, whoops.

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