iut: add -Werror to make all warnings into errors

Detect and suppress all build warnings on time.

(cherry picked from commit 7b4c25669f1513b0d6d6ee78ee42340d91958884)

GitOrigin-RevId: 7b4c25669f1513b0d6d6ee78ee42340d91958884
Change-Id: I1f81513d59b3c33066515f40b769510b4a0ef1af
diff --git a/zephyr/iut_test/CMakeLists.txt b/zephyr/iut_test/CMakeLists.txt
index dd930d1..9aedf4b 100644
--- a/zephyr/iut_test/CMakeLists.txt
+++ b/zephyr/iut_test/CMakeLists.txt
@@ -9,6 +9,7 @@
 project(iut_test)
 
 zephyr_linker_sources(RODATA custom-sections.ld)
+zephyr_cc_option(-Werror)
 
 target_include_directories(app PRIVATE ./include)