Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
571ebb23
O
Opencv
项目概览
Greenplum
/
Opencv
11 个月 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
571ebb23
编写于
10月 17, 2014
作者:
M
Maksim Shabunin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixing iOS clang warnings, part 3
上级
ef3d0221
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
16 addition
and
16 deletion
+16
-16
3rdparty/zlib/CMakeLists.txt
3rdparty/zlib/CMakeLists.txt
+1
-1
cmake/OpenCVCompilerOptions.cmake
cmake/OpenCVCompilerOptions.cmake
+4
-0
cmake/OpenCVUtils.cmake
cmake/OpenCVUtils.cmake
+2
-2
modules/imgcodecs/src/grfmt_tiff.cpp
modules/imgcodecs/src/grfmt_tiff.cpp
+2
-1
modules/videoio/src/cap_ios_abstract_camera.mm
modules/videoio/src/cap_ios_abstract_camera.mm
+2
-2
modules/videoio/src/cap_ios_video_camera.mm
modules/videoio/src/cap_ios_video_camera.mm
+1
-1
platforms/ios/cmake/Modules/Platform/iOS.cmake
platforms/ios/cmake/Modules/Platform/iOS.cmake
+4
-9
未找到文件。
3rdparty/zlib/CMakeLists.txt
浏览文件 @
571ebb23
...
...
@@ -82,7 +82,7 @@ if(UNIX)
endif
()
endif
()
ocv_warnings_disable
(
CMAKE_C_FLAGS -Wattributes -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
)
ocv_warnings_disable
(
CMAKE_C_FLAGS -W
shorten-64-to-32 -W
attributes -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
)
set_target_properties
(
${
ZLIB_LIBRARY
}
PROPERTIES
OUTPUT_NAME
${
ZLIB_LIBRARY
}
...
...
cmake/OpenCVCompilerOptions.cmake
浏览文件 @
571ebb23
...
...
@@ -106,6 +106,10 @@ if(CMAKE_COMPILER_IS_GNUCXX)
add_extra_compiler_option
(
-march=i686
)
endif
()
if
(
APPLE
)
add_extra_compiler_option
(
-Wno-semicolon-before-method-body
)
endif
()
# Other optimizations
if
(
ENABLE_OMIT_FRAME_POINTER
)
add_extra_compiler_option
(
-fomit-frame-pointer
)
...
...
cmake/OpenCVUtils.cmake
浏览文件 @
571ebb23
...
...
@@ -249,9 +249,9 @@ macro(add_apple_compiler_options the_module)
if
(
"
${
source
}
"
MATCHES
"
\\
.mm$"
)
get_source_file_property
(
flags
"
${
source
}
"
COMPILE_FLAGS
)
if
(
flags
)
set
(
flags
"
${
_flags
}
-fobjc-exceptions
-Wno-semicolon-before-method-body
"
)
set
(
flags
"
${
_flags
}
-fobjc-exceptions"
)
else
()
set
(
flags
"-fobjc-exceptions
-Wno-semicolon-before-method-body
"
)
set
(
flags
"-fobjc-exceptions"
)
endif
()
set_source_files_properties
(
"
${
source
}
"
PROPERTIES COMPILE_FLAGS
"
${
flags
}
"
)
...
...
modules/imgcodecs/src/grfmt_tiff.cpp
浏览文件 @
571ebb23
...
...
@@ -52,10 +52,11 @@
namespace
cv
{
static
const
char
fmtSignTiffII
[]
=
"II
\x2a\x00
"
;
static
const
char
fmtSignTiffMM
[]
=
"MM
\x00\x2a
"
;
#ifdef HAVE_TIFF
static
const
char
fmtSignTiffMM
[]
=
"MM
\x00\x2a
"
;
#include "tiff.h"
#include "tiffio.h"
...
...
modules/videoio/src/cap_ios_abstract_camera.mm
浏览文件 @
571ebb23
...
...
@@ -150,7 +150,7 @@
{
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
[[
UIDevice
currentDevice
]
endGeneratingDeviceOrientationNotifications
];
[
super
dealloc
]
[
super
dealloc
]
;
}
...
...
@@ -244,7 +244,7 @@
default:
break
;
}
NSLog
(
@"deviceOrientationDidChange: %d"
,
orientation
);
NSLog
(
@"deviceOrientationDidChange: %d"
,
(
int
)
orientation
);
[
self
updateOrientation
];
}
...
...
modules/videoio/src/cap_ios_video_camera.mm
浏览文件 @
571ebb23
...
...
@@ -464,7 +464,7 @@ static CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;}
}
// delegate image processing to the delegate
cv
::
Mat
image
(
height
,
width
,
format_opencv
,
bufferAddress
,
bytesPerRow
);
cv
::
Mat
image
(
(
int
)
height
,
(
int
)
width
,
format_opencv
,
bufferAddress
,
bytesPerRow
);
CGImage
*
dstImage
;
...
...
platforms/ios/cmake/Modules/Platform/iOS.cmake
浏览文件 @
571ebb23
...
...
@@ -39,16 +39,11 @@ set (CMAKE_CXX_OSX_COMPATIBILITY_VERSION_FLAG "${CMAKE_C_OSX_COMPATIBILITY_VERSI
set
(
CMAKE_CXX_OSX_CURRENT_VERSION_FLAG
"
${
CMAKE_C_OSX_CURRENT_VERSION_FLAG
}
"
)
# Hidden visibilty is required for cxx on iOS
set
(
CMAKE_C_FLAGS
"
"
)
set
(
CMAKE_C
XX_FLAGS
"-stdlib=libc++ -fvisibility=hidden -fvisibility-inlines-hidden
"
)
set
(
CMAKE_CXX_FLAGS
_RELEASE
"-DNDEBUG -O3 -fomit-frame-pointer -ffast-math
"
)
set
(
no_warn
"-Wno-unused-function -Wno-overloaded-virtual
"
)
set
(
CMAKE_C
_FLAGS
"
${
no_warn
}
"
)
set
(
CMAKE_CXX_FLAGS
"-stdlib=libc++ -fvisibility=hidden -fvisibility-inlines-hidden
${
no_warn
}
"
)
# Silence some warnings
set
(
no_warn
"-Wno-unused-function -Wno-unused-parameter -Wno-strict-prototypes -Wno-missing-prototypes -Wno-missing-declarations -Wno-unused-const-variable -Wno-overloaded-virtual"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
${
no_warn
}
"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
no_warn
}
"
)
# Additional linker flag
set
(
CMAKE_CXX_LINK_FLAGS
"-Wl,-headerpad_max_install_names
${
CMAKE_CXX_LINK_FLAGS
}
"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-DNDEBUG -O3 -fomit-frame-pointer -ffast-math"
)
if
(
HAVE_FLAG_SEARCH_PATHS_FIRST
)
set
(
CMAKE_C_LINK_FLAGS
"-Wl,-search_paths_first
${
CMAKE_C_LINK_FLAGS
}
"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录