Skip to content

image: Fix strict-aliasing compiler warnings#159

Open
olajep wants to merge 1 commit into
parallella:masterfrom
olajep:image-strict-aliasing-fixes
Open

image: Fix strict-aliasing compiler warnings#159
olajep wants to merge 1 commit into
parallella:masterfrom
olajep:image-strict-aliasing-fixes

Conversation

@olajep

@olajep olajep commented Jun 17, 2015

Copy link
Copy Markdown
Member

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 ola@adapteva.com

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 <ola@adapteva.com>
@olajep

olajep commented Jun 17, 2015

Copy link
Copy Markdown
Member Author

@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