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:
parent
55662a7f89
commit
40c15566eb
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue