Disable clang 22.1.6 default warnings which error out.
Move examples to the right place.

Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -706,6 +706,8 @@ if(NOT UA_FORCE_CPP AND (CMAKE_COMPILER_IS_GNUCC OR "x
     check_add_cc_flag("-Wstrict-prototypes")
     check_add_cc_flag("-Wredundant-decls")
 
+    check_add_cc_flag("-Wno-c2y-extensions")
+    check_add_cc_flag("-Wno-implicit-void-ptr-cast")
     check_add_cc_flag("-Wuninitialized")
     check_add_cc_flag("-Winit-self")
     check_add_cc_flag("-Wcast-qual")
@@ -1734,7 +1736,7 @@ if(UA_PACK_DEBIAN)
         "examples/nodeset"
         "examples/pubsub")
 
-    set(open62541_install_examples_dir share/open62541/examples)
+    set(open62541_install_examples_dir share/examples/open62541)
     install(DIRECTORY ${UA_install_examples_dirs} COMPONENT examples DESTINATION ${open62541_install_examples_dir} USE_SOURCE_PERMISSIONS)
 endif()
 
