Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit689e20a

Browse files
committed
Error onunguarded-availability-new in Darwin builds
1 parent2a66dd3 commit689e20a

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Error on `unguarded-availability-new` in Darwin builds, preventing invalid
2+
use of symbols that are not available in older versions of the OS.

‎configure

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎configure.ac

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2603,6 +2603,13 @@ AS_VAR_IF([ac_cv_gcc_compat], [yes], [
26032603
esac
26042604
AC_MSG_RESULT([$CC])
26052605
2606+
# Error on unguarded use of new symbols, which will fail at runtime for
2607+
# users on older versions of macOS
2608+
AX_CHECK_COMPILE_FLAG([-Wunguarded-availability-new],
2609+
[AS_VAR_APPEND([CFLAGS_NODIST],[" -Werror=unguarded-availability-new"])],
2610+
[],
2611+
[-Werror])
2612+
26062613
LIPO_INTEL64_FLAGS=""
26072614
if test "${enable_universalsdk}"
26082615
then

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp