Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2a5acd3d
Commit
2a5acd3d
authored
Feb 26, 2024
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 27, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Disable -Wmisleading-indentation warnings on GCC.
parent
ef6e9a6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
0 deletions
+70
-0
configure
configure
+64
-0
configure.ac
configure.ac
+6
-0
No files found.
configure
View file @
2a5acd3d
...
...
@@ -11526,6 +11526,41 @@ then :
as_fn_append
${
wine_arch
}
_EXTRACFLAGS
" -Wenum-conversion"
fi
}
{
as_ac_var
=
`
printf
"%s
\n
"
"ac_cv_
${
wine_arch
}
_cflags_-flarge-source-files -Wmisleading-indentation"
|
$as_tr_sh
`
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether
$CC
supports -flarge-source-files -Wmisleading-indentation"
>
&5
printf
%s
"checking whether
$CC
supports -flarge-source-files -Wmisleading-indentation... "
>
&6
;
}
if
eval test
\$
{
$as_ac_var
+y
}
then
:
printf
%s
"(cached) "
>
&6
else
$as_nop
ac_wine_try_cflags_saved
=
$CFLAGS
ac_wine_try_cflags_saved_exeext
=
$ac_exeext
CFLAGS
=
"
$CFLAGS
-nostdlib -nodefaultlibs -flarge-source-files -Wmisleading-indentation"
ac_exeext
=
".exe"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
void *__os_arm64x_dispatch_ret = 0;
int __cdecl mainCRTStartup(void) { return 0; }
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
then
:
eval
"
$as_ac_var
=yes"
else
$as_nop
eval
"
$as_ac_var
=no"
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.beam
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
ac_exeext
=
$ac_wine_try_cflags_saved_exeext
fi
eval
ac_res
=
\$
$as_ac_var
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_res
"
>
&5
printf
"%s
\n
"
"
$ac_res
"
>
&6
;
}
if
eval test
\"
x
\$
"
$as_ac_var
"
\"
=
x
"yes"
then
:
as_fn_append
${
wine_arch
}
_EXTRACFLAGS
" -Wno-misleading-indentation"
fi
}
case
$wine_arch
in
i386
)
{
as_ac_var
=
`
printf
"%s
\n
"
"ac_cv_
${
wine_arch
}
_cflags_-fno-omit-frame-pointer"
|
$as_tr_sh
`
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether
$CC
supports -fno-omit-frame-pointer"
>
&5
...
...
@@ -19473,6 +19508,35 @@ then :
EXTRACFLAGS
=
"
$EXTRACFLAGS
-Wwrite-strings"
fi
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -flarge-source-files -Wmisleading-indentation"
>
&5
printf
%s
"checking whether the compiler supports -flarge-source-files -Wmisleading-indentation... "
>
&6
;
}
if
test
${
ac_cv_cflags__flarge_source_files__Wmisleading_indentation
+y
}
then
:
printf
%s
"(cached) "
>
&6
else
$as_nop
ac_wine_try_cflags_saved
=
$CFLAGS
CFLAGS
=
"
$CFLAGS
-flarge-source-files -Wmisleading-indentation"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
int main(int argc, char **argv) { return 0; }
_ACEOF
if
ac_fn_c_try_link
"
$LINENO
"
then
:
ac_cv_cflags__flarge_source_files__Wmisleading_indentation
=
yes
else
$as_nop
ac_cv_cflags__flarge_source_files__Wmisleading_indentation
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.beam
\
conftest
$ac_exeext
conftest.
$ac_ext
CFLAGS
=
$ac_wine_try_cflags_saved
fi
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_cflags__flarge_source_files__Wmisleading_indentation
"
>
&5
printf
"%s
\n
"
"
$ac_cv_cflags__flarge_source_files__Wmisleading_indentation
"
>
&6
;
}
if
test
"x
$ac_cv_cflags__flarge_source_files__Wmisleading_indentation
"
=
xyes
then
:
EXTRACFLAGS
=
"
$EXTRACFLAGS
-Wno-misleading-indentation"
fi
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wpointer-arith"
>
&5
printf
%s
"checking whether the compiler supports -Wpointer-arith... "
>
&6
;
}
if
test
${
ac_cv_cflags__Wpointer_arith
+y
}
...
...
configure.ac
View file @
2a5acd3d
...
...
@@ -968,6 +968,9 @@ This is an error since --enable-archs=$wine_arch was requested.])])
WINE_TRY_PE_CFLAGS([-Wabsolute-value])
WINE_TRY_PE_CFLAGS([-Wenum-conversion])
dnl GCC can't handle large files when -Wmisleading-indentation is enabled (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89549)
WINE_TRY_PE_CFLAGS([-flarge-source-files -Wmisleading-indentation],[AS_VAR_APPEND(${wine_arch}_EXTRACFLAGS,[" -Wno-misleading-indentation"])])
case $wine_arch in
i386) WINE_TRY_PE_CFLAGS([-fno-omit-frame-pointer])
WINE_TRY_PE_CFLAGS([-mpreferred-stack-boundary=2])
...
...
@@ -1863,6 +1866,9 @@ then
WINE_TRY_CFLAGS([-Wvla])
WINE_TRY_CFLAGS([-Wwrite-strings])
dnl GCC can't handle large files when -Wmisleading-indentation is enabled (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89549)
WINE_TRY_CFLAGS([-flarge-source-files -Wmisleading-indentation],[EXTRACFLAGS="$EXTRACFLAGS -Wno-misleading-indentation"])
dnl Check for noisy string.h
WINE_TRY_CFLAGS([-Wpointer-arith],
[saved_string_h_CFLAGS=$CFLAGS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment