Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
自由之枫~
opencv
提交
89f8d4ae
O
opencv
项目概览
自由之枫~
/
opencv
与 Fork 源项目一致
Fork自
OpenCV / opencv
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
89f8d4ae
编写于
5月 15, 2022
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build: GCC12 warnings
上级
766f58ed
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
4 deletion
+7
-4
3rdparty/libpng/CMakeLists.txt
3rdparty/libpng/CMakeLists.txt
+3
-1
3rdparty/libtiff/CMakeLists.txt
3rdparty/libtiff/CMakeLists.txt
+2
-1
apps/traincascade/cascadeclassifier.cpp
apps/traincascade/cascadeclassifier.cpp
+1
-1
modules/ts/src/ts_gtest.cpp
modules/ts/src/ts_gtest.cpp
+1
-1
未找到文件。
3rdparty/libpng/CMakeLists.txt
浏览文件 @
89f8d4ae
...
...
@@ -77,7 +77,9 @@ endif(MSVC)
add_library
(
${
PNG_LIBRARY
}
STATIC
${
OPENCV_3RDPARTY_EXCLUDE_FROM_ALL
}
${
lib_srcs
}
${
lib_hdrs
}
)
target_link_libraries
(
${
PNG_LIBRARY
}
${
ZLIB_LIBRARIES
}
)
ocv_warnings_disable
(
CMAKE_C_FLAGS -Wundef -Wcast-align -Wimplicit-fallthrough -Wunused-parameter -Wsign-compare
)
ocv_warnings_disable
(
CMAKE_C_FLAGS -Wundef -Wcast-align -Wimplicit-fallthrough -Wunused-parameter -Wsign-compare
-Wmaybe-uninitialized
)
set_target_properties
(
${
PNG_LIBRARY
}
PROPERTIES OUTPUT_NAME
${
PNG_LIBRARY
}
...
...
3rdparty/libtiff/CMakeLists.txt
浏览文件 @
89f8d4ae
...
...
@@ -452,8 +452,9 @@ ocv_warnings_disable(CMAKE_C_FLAGS -Wno-unused-but-set-variable -Wmissing-protot
-Wcast-align -Wshadow -Wno-maybe-uninitialized -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast
-Wmisleading-indentation
-Wimplicit-fallthrough
-Wunused-parameter
# clang
-Warray-parameter
)
ocv_warnings_disable
(
CMAKE_C_FLAGS -Wunused-parameter
)
# clang
ocv_warnings_disable
(
CMAKE_CXX_FLAGS -Wmissing-declarations -Wunused-parameter -Wmissing-prototypes
-Wundef
# tiffiop.h: #if __clang_major__ >= 4
)
...
...
apps/traincascade/cascadeclassifier.cpp
浏览文件 @
89f8d4ae
...
...
@@ -252,7 +252,7 @@ bool CvCascadeClassifier::train( const string _cascadeDirName,
fs
<<
"}"
;
}
// save current stage
char
buf
[
10
];
char
buf
[
32
];
sprintf
(
buf
,
"%s%d"
,
"stage"
,
i
);
string
stageFilename
=
dirName
+
buf
+
".xml"
;
FileStorage
fs
(
stageFilename
,
FileStorage
::
WRITE
);
...
...
modules/ts/src/ts_gtest.cpp
浏览文件 @
89f8d4ae
...
...
@@ -8716,7 +8716,7 @@ static void StackLowerThanAddress(const void* ptr, bool* result) {
// Make sure AddressSanitizer does not tamper with the stack here.
GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_
static
bool
StackGrowsDown
()
{
int
dummy
;
int
dummy
=
0
;
bool
result
;
StackLowerThanAddress
(
&
dummy
,
&
result
);
return
result
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录