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

image: Fix strict-aliasing compiler warnings #159

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

olajep
Copy link
Member

@olajep olajep commented Jun 17, 2015

Affected functions: p_scharr3x3 and p_sobel3x3.

Fix strict-aliasing compiler warnings (-O2 enables -fstrict-aliasing).

Now compiles with:
CFLAGS="-Werror -Wall -Wno-unused -D_FORTIFY_SOURCE=2 -O2"

Signed-off-by: Ola Jeppsson [email protected]

Affected functions: p_scharr3x3 and p_sobel3x3.

Fix strict-aliasing compiler warnings (-O2 enables -fstrict-aliasing).

Now compiles with:
CFLAGS="-Werror -Wall -Wno-unused -D_FORTIFY_SOURCE=2 -O2"

Signed-off-by: Ola Jeppsson <[email protected]>
@olajep
Copy link
Member Author

olajep commented Jun 17, 2015

@jar
Since you wrote the original code, and we don't have a test case:
could you please review?

Thanks,
Ola

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.

1 participant