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
42b0a3b9
Commit
42b0a3b9
authored
Dec 09, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Enable printf format warnings for 64-bit PE builds.
parent
79650e40
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
76 deletions
+2
-76
configure
configure
+1
-67
configure.ac
configure.ac
+1
-3
makedep.c
tools/makedep.c
+0
-6
No files found.
configure
View file @
42b0a3b9
...
@@ -11450,40 +11450,7 @@ if eval test \"x\$"$as_ac_var"\" = x"yes"
...
@@ -11450,40 +11450,7 @@ if eval test \"x\$"$as_ac_var"\" = x"yes"
then
:
then
:
as_fn_append
${
wine_arch
}
_LDFLAGS
" -Wl,--disable-stdcall-fixup"
as_fn_append
${
wine_arch
}
_LDFLAGS
" -Wl,--disable-stdcall-fixup"
fi
}
;;
fi
}
;;
x86_64
)
{
as_ac_var
=
`
printf
"%s
\n
"
"ac_cv_
${
wine_arch
}
_cflags_-Wno-format"
|
$as_tr_sh
`
x86_64
)
{
as_ac_var
=
`
printf
"%s
\n
"
"ac_cv_
${
wine_arch
}
_cflags_-Wformat-overflow"
|
$as_tr_sh
`
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether
$CC
supports -Wno-format"
>
&5
printf
%s
"checking whether
$CC
supports -Wno-format... "
>
&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 -Wno-format"
ac_exeext
=
".exe"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
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-format"
fi
}
{
as_ac_var
=
`
printf
"%s
\n
"
"ac_cv_
${
wine_arch
}
_cflags_-Wformat-overflow"
|
$as_tr_sh
`
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether
$CC
supports -Wformat-overflow"
>
&5
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether
$CC
supports -Wformat-overflow"
>
&5
printf
%s
"checking whether
$CC
supports -Wformat-overflow... "
>
&6
;
}
printf
%s
"checking whether
$CC
supports -Wformat-overflow... "
>
&6
;
}
if
eval test
\$
{
$as_ac_var
+y
}
if
eval test
\$
{
$as_ac_var
+y
}
...
@@ -11582,39 +11549,6 @@ if eval test \"x\$"$as_ac_var"\" = x"yes"
...
@@ -11582,39 +11549,6 @@ if eval test \"x\$"$as_ac_var"\" = x"yes"
then
:
then
:
as_fn_append
${
wine_arch
}
_EXTRACFLAGS
" -mcx16"
as_fn_append
${
wine_arch
}
_EXTRACFLAGS
" -mcx16"
fi
}
;;
fi
}
;;
aarch64
)
{
as_ac_var
=
`
printf
"%s
\n
"
"ac_cv_
${
wine_arch
}
_cflags_-Wno-format"
|
$as_tr_sh
`
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether
$CC
supports -Wno-format"
>
&5
printf
%s
"checking whether
$CC
supports -Wno-format... "
>
&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 -Wno-format"
ac_exeext
=
".exe"
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
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-format"
fi
}
;;
esac
esac
wine_crossdebug
=
$CROSSDEBUG
wine_crossdebug
=
$CROSSDEBUG
...
...
configure.ac
View file @
42b0a3b9
...
@@ -959,11 +959,9 @@ do
...
@@ -959,11 +959,9 @@ do
i386) WINE_TRY_PE_CFLAGS([-fno-omit-frame-pointer])
i386) WINE_TRY_PE_CFLAGS([-fno-omit-frame-pointer])
WINE_TRY_PE_CFLAGS([-Wl,--disable-stdcall-fixup],
WINE_TRY_PE_CFLAGS([-Wl,--disable-stdcall-fixup],
[AS_VAR_APPEND([${wine_arch}_LDFLAGS],[" -Wl,--disable-stdcall-fixup"])]) ;;
[AS_VAR_APPEND([${wine_arch}_LDFLAGS],[" -Wl,--disable-stdcall-fixup"])]) ;;
x86_64) WINE_TRY_PE_CFLAGS([-Wno-format])
x86_64) WINE_TRY_PE_CFLAGS([-Wformat-overflow])
WINE_TRY_PE_CFLAGS([-Wformat-overflow])
WINE_TRY_PE_CFLAGS([-Wnonnull])
WINE_TRY_PE_CFLAGS([-Wnonnull])
WINE_TRY_PE_CFLAGS([-mcx16]) ;;
WINE_TRY_PE_CFLAGS([-mcx16]) ;;
aarch64) WINE_TRY_PE_CFLAGS([-Wno-format]) ;;
esac
esac
dnl Determine debug info format
dnl Determine debug info format
...
...
tools/makedep.c
View file @
42b0a3b9
...
@@ -3174,12 +3174,6 @@ static void output_source_one_arch( struct makefile *make, struct incl_file *sou
...
@@ -3174,12 +3174,6 @@ static void output_source_one_arch( struct makefile *make, struct incl_file *sou
if
(
make
->
module
&&
is_crt_module
(
make
->
module
))
output_filename
(
"-fno-builtin"
);
if
(
make
->
module
&&
is_crt_module
(
make
->
module
))
output_filename
(
"-fno-builtin"
);
}
}
/* force -Wformat when using 'long' types, until all modules have been converted
* and we can remove -Wno-format */
if
(
!
make
->
extlib
&&
strarray_exists
(
&
extra_cflags
[
arch
],
"-Wno-format"
)
&&
!
strarray_exists
(
&
defines
,
"-DWINE_NO_LONG_TYPES"
))
output_filename
(
"-Wformat"
);
output_filenames
(
cpp_flags
);
output_filenames
(
cpp_flags
);
output_filename
(
arch_make_variable
(
"CFLAGS"
,
arch
));
output_filename
(
arch_make_variable
(
"CFLAGS"
,
arch
));
output
(
"
\n
"
);
output
(
"
\n
"
);
...
...
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