Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

samples: use WARNING_FLAGS definition #49

Merged
merged 1 commit into from
Jan 31, 2018

Conversation

uartie
Copy link
Contributor

@uartie uartie commented Jan 26, 2018

Don't hard-code -Werror into compiler flags. Instead, use
the configured value from WARNING_FLAGS. This allows
the user to disable -Werror if needed.

Currently, on some compiler versions there are still
some warnings being generated in samples/hevc_fei. So
remove hard-coded -Werror and use WARNING_FLAGS instead.

Fixes #48

@@ -17,7 +17,6 @@ include_directories (
list( APPEND LIBS_VARIANT sample_common )

set(DEPENDENCIES ${skipping} itt libmfx dl pthread)
set( defs "-Werror" )

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Originally samples had separate build infrastructure and didn't use -Werror and didn't support WARNING_FLAGS. Now WARNING_FLAGS can be used, so better to make your change in order to your commit message, i.e. set WARNING_FLAGS in CMakeLists.txt for sample_hevc_fei.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I was under the impressions that WARNING_FLAGS was handled at a higher/top level of the project configuration. I will double check.

@uartie uartie changed the title samples/hevc_fei: use -Werror from WARNING_FLAGS definition samples: use WARNING_FLAGS definition Jan 29, 2018
@uartie
Copy link
Contributor Author

uartie commented Jan 29, 2018

@otsirule patch updated.

Copy link
Contributor

@onabiull onabiull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately samples code not yet warning-free. Could you please add this option to sample_hevc_fei only?

Don't hard-code -Werror into compiler flags.  Instead, use
the configured value from WARNING_FLAGS.  This allows
the user to disable -Werror if needed.

Currently, on some compiler versions there are still
some warnings being generated in samples/hevc_fei. So
remove hard-coded -Werror and use WARNING_FLAGS instead.

Fixes Intel-Media-SDK#48

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
@uartie
Copy link
Contributor Author

uartie commented Jan 30, 2018

@onabiull patch updated

@onabiull onabiull merged commit 0dc8ab9 into Intel-Media-SDK:master Jan 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants