ext: hal: altera: disable altera_avalon_i2c compilation warnings

Disable compilation warnings for altera_avalon_i2c.c as it is not
maintained in Zephyr.

Cmake does not allow us to use set_source_files_properties on
source files directly, these files need to be linked to either
a target executable or a target library. Due to the above reason,
altera_avalon_i2c CMakeLists.txt creates a library and links the
source file to the zephyr library.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
This commit is contained in:
Ramakrishna Pallala 2018-02-07 20:28:46 +05:30 committed by Anas Nashif
commit 40c15566eb

View file

@ -1 +1,7 @@
zephyr_sources(altera_avalon_i2c.c)
zephyr_library()
zephyr_library_compile_definitions(${COMPILER})
zephyr_library_sources(altera_avalon_i2c.c)
set_source_files_properties(altera_avalon_i2c.c
PROPERTIES COMPILE_DEFINITIONS "${COMPILER}")
set_source_files_properties(altera_avalon_i2c.c
PROPERTIES COMPILE_FLAGS -Wno-maybe-uninitialized) # altera_avalon_i2c.c warns on uninitialized