mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Merge pull request #23938 from mshabunin/fix-warnings-gcc
Fix compiler warnings for GCC 11-12 and Clang 13
This commit is contained in:
@@ -21,7 +21,7 @@ macro(copy_file_ src dst prefix)
|
||||
endif()
|
||||
if(use_symlink)
|
||||
if(local_update OR NOT IS_SYMLINK "${dst}")
|
||||
message("${prefix}Symlink: '${dst_name}' ...")
|
||||
#message("${prefix}Symlink: '${dst_name}' ...")
|
||||
endif()
|
||||
get_filename_component(target_path "${dst}" PATH)
|
||||
file(MAKE_DIRECTORY "${target_path}")
|
||||
@@ -38,7 +38,7 @@ macro(copy_file_ src dst prefix)
|
||||
set(local_update 1)
|
||||
endif()
|
||||
if(local_update)
|
||||
message("${prefix}Copying: '${dst_name}' ...")
|
||||
#message("${prefix}Copying: '${dst_name}' ...")
|
||||
configure_file(${src} ${dst} COPYONLY)
|
||||
else()
|
||||
#message("${prefix}Up-to-date: '${dst_name}'")
|
||||
@@ -55,7 +55,7 @@ if(NOT DEFINED COPYLIST_VAR)
|
||||
set(COPYLIST_VAR "COPYLIST")
|
||||
endif()
|
||||
list(LENGTH ${COPYLIST_VAR} __length)
|
||||
message("${prefix}... ${__length} entries (${COPYLIST_VAR})")
|
||||
#message("${prefix}... ${__length} entries (${COPYLIST_VAR})")
|
||||
foreach(id ${${COPYLIST_VAR}})
|
||||
set(src "${${COPYLIST_VAR}_SRC_${id}}")
|
||||
set(dst "${${COPYLIST_VAR}_DST_${id}}")
|
||||
@@ -80,7 +80,7 @@ foreach(id ${${COPYLIST_VAR}})
|
||||
endif()
|
||||
file(GLOB_RECURSE _files RELATIVE "${src}" ${src_glob})
|
||||
list(LENGTH _files __length)
|
||||
message("${prefix} ... directory '.../${src_name2}/${src_name}' with ${__length} files")
|
||||
#message("${prefix} ... directory '.../${src_name2}/${src_name}' with ${__length} files")
|
||||
foreach(f ${_files})
|
||||
if(NOT EXISTS "${src}/${f}")
|
||||
message(FATAL_ERROR "COPY ERROR: Source file is missing: ${src}/${f}")
|
||||
@@ -98,12 +98,12 @@ else()
|
||||
endif()
|
||||
if(NOT "${__state}" STREQUAL "${__prev_state}")
|
||||
file(WRITE "${STATE_FILE}" "${__state}")
|
||||
message("${prefix}Updated!")
|
||||
#message("${prefix}Updated!")
|
||||
set(update_dephelper 1)
|
||||
endif()
|
||||
|
||||
if(NOT update_dephelper)
|
||||
message("${prefix}All files are up-to-date.")
|
||||
#message("${prefix}All files are up-to-date.")
|
||||
elseif(DEFINED DEPHELPER)
|
||||
file(WRITE "${DEPHELPER}" "")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user