mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #208] Compile-time warnings with strict prototypes enabled #170
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#170
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @evanmiller on GitHub (Dec 12, 2018).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/208
Originally assigned to: @jmcnamara on GitHub.
Adding
-Wstrict-prototypesto CFLAGS results in a number of warnings such as:Since C89, functions that take no arguments are supposed to be prototyped as
int function(void);rather thanint function();. A quick grep shows a number of non-conforming prototypes:Should be an easy fix. I'd recommend adding
-Wstrict-prototypesto the default build options to ensure compliance in the future.@jmcnamara commented on GitHub (Dec 12, 2018):
Thanks. Good catch.