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 all reported warnings when -Wall is enabled and enable -Wall by default. While there, move OPTS to end of CFLAGS. This allows the user to override default options. #222

Merged
merged 17 commits into from
Apr 9, 2022

Conversation

rkta
Copy link
Contributor

@rkta rkta commented Feb 20, 2022

No description provided.

This allows the user to override default options.
While there, add some comments to better understand the code flow in
localcgi_post().
This change removes all warnings (-Wall) from this function.
Throughout the whole code base only char * is passed, but a unsigned
char * is expected. This leads to several warnings.

Fix the interface and cast to unsigned char * internally to avoid any
changes to the behaviour.
When compiling with -Wformat-overflow=2 GCC reports:
  note: 'sprintf' output between 16 and 35 bytes into a destination of size 32
This removes a warning with -Wall.
@tats tats merged commit ca9f5fc into tats:master Apr 9, 2022
@tats
Copy link
Owner

tats commented Apr 9, 2022

Merged, thanks for your contribution.

@rkta rkta deleted the Wall branch May 1, 2022 09:46
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.

None yet

3 participants