intel / intel/media-driver

remove -fno-strict-aliasing from imposed building filags

Open
#354 1 comment 0 reactions 1 assignee Assigned to @hye5 View on GitHub
Common Reserved
Dominant language
C
Stars
1.2k
Forks
383
Avg merge
8d 18h
Merged PRs (30d)
4

Description

media-driver imposes -fno-strict-aliasing, which in reality is hiding things like this:

/vphal_common.c:945:19: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]
dwInput = *((uint32_t *) (&fInput));
~^~~~~~~~~~~~~~~~~~~~~~~

Fix errors when this flag is removed from build.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.