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 macro expansion bug #485

Merged
merged 1 commit into from
Aug 28, 2019
Merged

Conversation

nathanel23
Copy link
Contributor

The macro redir_memcopy expands to multiple statements. However, one of
if-blocks where it is used lacks braces for the code block. This results
in parts of the macro being executed even if not intended and triggers
a compiler warning on modern GCC versions.

The macro redir_memcopy expands to multiple statements. However, one of
if-blocks where it is used lacks braces to form a block. This results
in parts of the macro being executed even if not intended and triggers
a compiler warning on modern GCC versions.
@sevan sevan merged commit d97e4f4 into coova:master Aug 28, 2019
@neheb
Copy link
Contributor

neheb commented Nov 1, 2019

An alternative fix is here: https://github.com/openwrt/packages/blob/master/net/coova-chilli/patches/500-redir.patch

Discussion: openwrt/packages#9336 (comment)

I am not sure which is better.

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.

4 participants