4489
# Check whether --enable-selective-werror was given.
4490
if test "${enable_selective_werror+set}" = set; then :
4491
enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4493
SELECTIVE_WERROR=yes
4497
# -v is too short to test reliably with XORG_TESTSET_CFLAG
4498
if test "x$SUNCC" = "xyes"; then
4504
# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4510
xorg_testset_save_CFLAGS="$CFLAGS"
4512
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4513
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4514
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4515
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4516
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517
/* end confdefs.h. */
4520
if ac_fn_c_try_compile "$LINENO"; then :
4521
xorg_testset_unknown_warning_option=yes
4523
xorg_testset_unknown_warning_option=no
4525
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4527
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
4528
CFLAGS="$xorg_testset_save_CFLAGS"
4531
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4532
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4533
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4535
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4536
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4537
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4538
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539
/* end confdefs.h. */
4542
if ac_fn_c_try_compile "$LINENO"; then :
4543
xorg_testset_unused_command_line_argument=yes
4545
xorg_testset_unused_command_line_argument=no
4547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4549
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4550
CFLAGS="$xorg_testset_save_CFLAGS"
4555
if test $found = "no" ; then
4556
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4557
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4560
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4561
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4564
CFLAGS="$CFLAGS -Wall"
4566
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4567
$as_echo_n "checking if $CC supports -Wall... " >&6; }
4568
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569
/* end confdefs.h. */
4579
if ac_fn_c_try_link "$LINENO"; then :
4584
rm -f core conftest.err conftest.$ac_objext \
4585
conftest$ac_exeext conftest.$ac_ext
4586
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4587
$as_echo "$supported" >&6; }
4588
CFLAGS="$xorg_testset_save_CFLAGS"
4590
if test "$supported" = "yes" ; then
4591
BASE_CFLAGS="$BASE_CFLAGS -Wall"
4602
xorg_testset_save_CFLAGS="$CFLAGS"
4604
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4605
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4607
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4608
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609
/* end confdefs.h. */
4612
if ac_fn_c_try_compile "$LINENO"; then :
4613
xorg_testset_unknown_warning_option=yes
4615
xorg_testset_unknown_warning_option=no
4617
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4619
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
4620
CFLAGS="$xorg_testset_save_CFLAGS"
4623
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4624
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4625
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4627
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4629
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4630
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631
/* end confdefs.h. */
4634
if ac_fn_c_try_compile "$LINENO"; then :
4635
xorg_testset_unused_command_line_argument=yes
4637
xorg_testset_unused_command_line_argument=no
4639
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4641
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4642
CFLAGS="$xorg_testset_save_CFLAGS"
4647
if test $found = "no" ; then
4648
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4649
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4652
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4653
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4656
CFLAGS="$CFLAGS -Wpointer-arith"
4658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4659
$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4660
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661
/* end confdefs.h. */
4671
if ac_fn_c_try_link "$LINENO"; then :
4676
rm -f core conftest.err conftest.$ac_objext \
4677
conftest$ac_exeext conftest.$ac_ext
4678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4679
$as_echo "$supported" >&6; }
4680
CFLAGS="$xorg_testset_save_CFLAGS"
4682
if test "$supported" = "yes" ; then
4683
BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4694
xorg_testset_save_CFLAGS="$CFLAGS"
4696
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4697
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4699
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4700
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701
/* end confdefs.h. */
4704
if ac_fn_c_try_compile "$LINENO"; then :
4705
xorg_testset_unknown_warning_option=yes
4707
xorg_testset_unknown_warning_option=no
4709
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4711
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
4712
CFLAGS="$xorg_testset_save_CFLAGS"
4715
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4716
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4717
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4719
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4721
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4722
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723
/* end confdefs.h. */
4726
if ac_fn_c_try_compile "$LINENO"; then :
4727
xorg_testset_unused_command_line_argument=yes
4729
xorg_testset_unused_command_line_argument=no
4731
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4733
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4734
CFLAGS="$xorg_testset_save_CFLAGS"
4739
if test $found = "no" ; then
4740
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4741
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4744
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4745
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4748
CFLAGS="$CFLAGS -Wstrict-prototypes"
4750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4751
$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4752
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753
/* end confdefs.h. */
4763
if ac_fn_c_try_link "$LINENO"; then :
4768
rm -f core conftest.err conftest.$ac_objext \
4769
conftest$ac_exeext conftest.$ac_ext
4770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4771
$as_echo "$supported" >&6; }
4772
CFLAGS="$xorg_testset_save_CFLAGS"
4774
if test "$supported" = "yes" ; then
4775
BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4786
xorg_testset_save_CFLAGS="$CFLAGS"
4788
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4789
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4791
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4792
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793
/* end confdefs.h. */
4796
if ac_fn_c_try_compile "$LINENO"; then :
4797
xorg_testset_unknown_warning_option=yes
4799
xorg_testset_unknown_warning_option=no
4801
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4803
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
4804
CFLAGS="$xorg_testset_save_CFLAGS"
4807
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4808
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4809
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4811
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4813
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4814
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815
/* end confdefs.h. */
4818
if ac_fn_c_try_compile "$LINENO"; then :
4819
xorg_testset_unused_command_line_argument=yes
4821
xorg_testset_unused_command_line_argument=no
4823
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4825
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4826
CFLAGS="$xorg_testset_save_CFLAGS"
4831
if test $found = "no" ; then
4832
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4833
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4836
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4837
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4840
CFLAGS="$CFLAGS -Wmissing-prototypes"
4842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4843
$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4844
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845
/* end confdefs.h. */
4855
if ac_fn_c_try_link "$LINENO"; then :
4860
rm -f core conftest.err conftest.$ac_objext \
4861
conftest$ac_exeext conftest.$ac_ext
4862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4863
$as_echo "$supported" >&6; }
4864
CFLAGS="$xorg_testset_save_CFLAGS"
4866
if test "$supported" = "yes" ; then
4867
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4878
xorg_testset_save_CFLAGS="$CFLAGS"
4880
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4881
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4883
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4884
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885
/* end confdefs.h. */
4888
if ac_fn_c_try_compile "$LINENO"; then :
4889
xorg_testset_unknown_warning_option=yes
4891
xorg_testset_unknown_warning_option=no
4893
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4895
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
4896
CFLAGS="$xorg_testset_save_CFLAGS"
4899
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4900
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4901
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4903
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4904
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4905
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4906
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907
/* end confdefs.h. */
4910
if ac_fn_c_try_compile "$LINENO"; then :
4911
xorg_testset_unused_command_line_argument=yes
4913
xorg_testset_unused_command_line_argument=no
4915
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
4917
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
4918
CFLAGS="$xorg_testset_save_CFLAGS"
4923
if test $found = "no" ; then
4924
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4925
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4928
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4929
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4932
CFLAGS="$CFLAGS -Wmissing-declarations"
4934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4935
$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4936
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937
/* end confdefs.h. */
4947
if ac_fn_c_try_link "$LINENO"; then :
4952
rm -f core conftest.err conftest.$ac_objext \
4953
conftest$ac_exeext conftest.$ac_ext
4954
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4955
$as_echo "$supported" >&6; }
4956
CFLAGS="$xorg_testset_save_CFLAGS"
4958
if test "$supported" = "yes" ; then
4959
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4970
xorg_testset_save_CFLAGS="$CFLAGS"
4972
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4973
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4975
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4976
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977
/* end confdefs.h. */
4980
if ac_fn_c_try_compile "$LINENO"; then :
4981
xorg_testset_unknown_warning_option=yes
4983
xorg_testset_unknown_warning_option=no
4985
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
4987
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
4988
CFLAGS="$xorg_testset_save_CFLAGS"
4991
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4992
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4993
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4995
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4997
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4998
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999
/* end confdefs.h. */
5002
if ac_fn_c_try_compile "$LINENO"; then :
5003
xorg_testset_unused_command_line_argument=yes
5005
xorg_testset_unused_command_line_argument=no
5007
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5009
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5010
CFLAGS="$xorg_testset_save_CFLAGS"
5015
if test $found = "no" ; then
5016
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5017
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5020
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5021
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5024
CFLAGS="$CFLAGS -Wnested-externs"
5026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5027
$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5028
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029
/* end confdefs.h. */
5039
if ac_fn_c_try_link "$LINENO"; then :
5044
rm -f core conftest.err conftest.$ac_objext \
5045
conftest$ac_exeext conftest.$ac_ext
5046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5047
$as_echo "$supported" >&6; }
5048
CFLAGS="$xorg_testset_save_CFLAGS"
5050
if test "$supported" = "yes" ; then
5051
BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5062
xorg_testset_save_CFLAGS="$CFLAGS"
5064
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5065
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5067
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5068
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069
/* end confdefs.h. */
5072
if ac_fn_c_try_compile "$LINENO"; then :
5073
xorg_testset_unknown_warning_option=yes
5075
xorg_testset_unknown_warning_option=no
5077
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5079
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5080
CFLAGS="$xorg_testset_save_CFLAGS"
5083
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5084
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5085
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5087
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5089
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5090
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091
/* end confdefs.h. */
5094
if ac_fn_c_try_compile "$LINENO"; then :
5095
xorg_testset_unused_command_line_argument=yes
5097
xorg_testset_unused_command_line_argument=no
5099
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5101
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5102
CFLAGS="$xorg_testset_save_CFLAGS"
5107
if test $found = "no" ; then
5108
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5109
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5112
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5113
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5116
CFLAGS="$CFLAGS -Wbad-function-cast"
5118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5119
$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5120
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121
/* end confdefs.h. */
5131
if ac_fn_c_try_link "$LINENO"; then :
5136
rm -f core conftest.err conftest.$ac_objext \
5137
conftest$ac_exeext conftest.$ac_ext
5138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5139
$as_echo "$supported" >&6; }
5140
CFLAGS="$xorg_testset_save_CFLAGS"
5142
if test "$supported" = "yes" ; then
5143
BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5154
xorg_testset_save_CFLAGS="$CFLAGS"
5156
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5157
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5158
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5159
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5160
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161
/* end confdefs.h. */
5164
if ac_fn_c_try_compile "$LINENO"; then :
5165
xorg_testset_unknown_warning_option=yes
5167
xorg_testset_unknown_warning_option=no
5169
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5171
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5172
CFLAGS="$xorg_testset_save_CFLAGS"
5175
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5176
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5177
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5179
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5181
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5182
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183
/* end confdefs.h. */
5186
if ac_fn_c_try_compile "$LINENO"; then :
5187
xorg_testset_unused_command_line_argument=yes
5189
xorg_testset_unused_command_line_argument=no
5191
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5193
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5194
CFLAGS="$xorg_testset_save_CFLAGS"
5199
if test $found = "no" ; then
5200
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5201
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5204
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5205
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5208
CFLAGS="$CFLAGS -Wformat=2"
5210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5211
$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5212
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213
/* end confdefs.h. */
5223
if ac_fn_c_try_link "$LINENO"; then :
5228
rm -f core conftest.err conftest.$ac_objext \
5229
conftest$ac_exeext conftest.$ac_ext
5230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5231
$as_echo "$supported" >&6; }
5232
CFLAGS="$xorg_testset_save_CFLAGS"
5234
if test "$supported" = "yes" ; then
5235
BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5240
if test $found = "no" ; then
5241
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5242
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5245
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5246
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5249
CFLAGS="$CFLAGS -Wformat"
5251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5252
$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5253
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254
/* end confdefs.h. */
5264
if ac_fn_c_try_link "$LINENO"; then :
5269
rm -f core conftest.err conftest.$ac_objext \
5270
conftest$ac_exeext conftest.$ac_ext
5271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5272
$as_echo "$supported" >&6; }
5273
CFLAGS="$xorg_testset_save_CFLAGS"
5275
if test "$supported" = "yes" ; then
5276
BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5287
xorg_testset_save_CFLAGS="$CFLAGS"
5289
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5290
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5292
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5293
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294
/* end confdefs.h. */
5297
if ac_fn_c_try_compile "$LINENO"; then :
5298
xorg_testset_unknown_warning_option=yes
5300
xorg_testset_unknown_warning_option=no
5302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5304
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5305
CFLAGS="$xorg_testset_save_CFLAGS"
5308
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5309
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5310
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5312
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5314
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5315
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316
/* end confdefs.h. */
5319
if ac_fn_c_try_compile "$LINENO"; then :
5320
xorg_testset_unused_command_line_argument=yes
5322
xorg_testset_unused_command_line_argument=no
5324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5326
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5327
CFLAGS="$xorg_testset_save_CFLAGS"
5332
if test $found = "no" ; then
5333
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5334
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5337
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5338
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5341
CFLAGS="$CFLAGS -Wold-style-definition"
5343
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5344
$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5345
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346
/* end confdefs.h. */
5356
if ac_fn_c_try_link "$LINENO"; then :
5361
rm -f core conftest.err conftest.$ac_objext \
5362
conftest$ac_exeext conftest.$ac_ext
5363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5364
$as_echo "$supported" >&6; }
5365
CFLAGS="$xorg_testset_save_CFLAGS"
5367
if test "$supported" = "yes" ; then
5368
BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5379
xorg_testset_save_CFLAGS="$CFLAGS"
5381
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5382
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5383
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5384
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5385
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386
/* end confdefs.h. */
5389
if ac_fn_c_try_compile "$LINENO"; then :
5390
xorg_testset_unknown_warning_option=yes
5392
xorg_testset_unknown_warning_option=no
5394
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5396
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5397
CFLAGS="$xorg_testset_save_CFLAGS"
5400
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5401
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5402
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5406
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5407
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408
/* end confdefs.h. */
5411
if ac_fn_c_try_compile "$LINENO"; then :
5412
xorg_testset_unused_command_line_argument=yes
5414
xorg_testset_unused_command_line_argument=no
5416
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5418
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5419
CFLAGS="$xorg_testset_save_CFLAGS"
5424
if test $found = "no" ; then
5425
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5426
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5429
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5430
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5433
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5435
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5436
$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5437
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438
/* end confdefs.h. */
5448
if ac_fn_c_try_link "$LINENO"; then :
5453
rm -f core conftest.err conftest.$ac_objext \
5454
conftest$ac_exeext conftest.$ac_ext
5455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5456
$as_echo "$supported" >&6; }
5457
CFLAGS="$xorg_testset_save_CFLAGS"
5459
if test "$supported" = "yes" ; then
5460
BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5467
# This chunk adds additional warnings that could catch undesired effects.
5473
xorg_testset_save_CFLAGS="$CFLAGS"
5475
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5476
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5477
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5478
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5479
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480
/* end confdefs.h. */
5483
if ac_fn_c_try_compile "$LINENO"; then :
5484
xorg_testset_unknown_warning_option=yes
5486
xorg_testset_unknown_warning_option=no
5488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5490
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5491
CFLAGS="$xorg_testset_save_CFLAGS"
5494
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5495
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5496
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5498
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5500
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5501
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502
/* end confdefs.h. */
5505
if ac_fn_c_try_compile "$LINENO"; then :
5506
xorg_testset_unused_command_line_argument=yes
5508
xorg_testset_unused_command_line_argument=no
5510
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5512
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5513
CFLAGS="$xorg_testset_save_CFLAGS"
5518
if test $found = "no" ; then
5519
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5520
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5523
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5524
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5527
CFLAGS="$CFLAGS -Wunused"
5529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5530
$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5531
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532
/* end confdefs.h. */
5542
if ac_fn_c_try_link "$LINENO"; then :
5547
rm -f core conftest.err conftest.$ac_objext \
5548
conftest$ac_exeext conftest.$ac_ext
5549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5550
$as_echo "$supported" >&6; }
5551
CFLAGS="$xorg_testset_save_CFLAGS"
5553
if test "$supported" = "yes" ; then
5554
BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5565
xorg_testset_save_CFLAGS="$CFLAGS"
5567
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5568
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5570
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5571
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572
/* end confdefs.h. */
5575
if ac_fn_c_try_compile "$LINENO"; then :
5576
xorg_testset_unknown_warning_option=yes
5578
xorg_testset_unknown_warning_option=no
5580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5582
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5583
CFLAGS="$xorg_testset_save_CFLAGS"
5586
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5587
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5588
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5590
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5591
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5592
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5593
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594
/* end confdefs.h. */
5597
if ac_fn_c_try_compile "$LINENO"; then :
5598
xorg_testset_unused_command_line_argument=yes
5600
xorg_testset_unused_command_line_argument=no
5602
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5604
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5605
CFLAGS="$xorg_testset_save_CFLAGS"
5610
if test $found = "no" ; then
5611
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5612
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5615
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5616
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5619
CFLAGS="$CFLAGS -Wuninitialized"
5621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5622
$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5623
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624
/* end confdefs.h. */
5634
if ac_fn_c_try_link "$LINENO"; then :
5639
rm -f core conftest.err conftest.$ac_objext \
5640
conftest$ac_exeext conftest.$ac_ext
5641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5642
$as_echo "$supported" >&6; }
5643
CFLAGS="$xorg_testset_save_CFLAGS"
5645
if test "$supported" = "yes" ; then
5646
BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5657
xorg_testset_save_CFLAGS="$CFLAGS"
5659
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5660
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5662
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5663
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664
/* end confdefs.h. */
5667
if ac_fn_c_try_compile "$LINENO"; then :
5668
xorg_testset_unknown_warning_option=yes
5670
xorg_testset_unknown_warning_option=no
5672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5674
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5675
CFLAGS="$xorg_testset_save_CFLAGS"
5678
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5679
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5680
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5682
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5684
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5685
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686
/* end confdefs.h. */
5689
if ac_fn_c_try_compile "$LINENO"; then :
5690
xorg_testset_unused_command_line_argument=yes
5692
xorg_testset_unused_command_line_argument=no
5694
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5696
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5697
CFLAGS="$xorg_testset_save_CFLAGS"
5702
if test $found = "no" ; then
5703
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5704
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5708
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5711
CFLAGS="$CFLAGS -Wshadow"
5713
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5714
$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5715
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716
/* end confdefs.h. */
5726
if ac_fn_c_try_link "$LINENO"; then :
5731
rm -f core conftest.err conftest.$ac_objext \
5732
conftest$ac_exeext conftest.$ac_ext
5733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5734
$as_echo "$supported" >&6; }
5735
CFLAGS="$xorg_testset_save_CFLAGS"
5737
if test "$supported" = "yes" ; then
5738
BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5749
xorg_testset_save_CFLAGS="$CFLAGS"
5751
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5752
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5754
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5755
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756
/* end confdefs.h. */
5759
if ac_fn_c_try_compile "$LINENO"; then :
5760
xorg_testset_unknown_warning_option=yes
5762
xorg_testset_unknown_warning_option=no
5764
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5766
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5767
CFLAGS="$xorg_testset_save_CFLAGS"
5770
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5771
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5772
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5774
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5776
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5777
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778
/* end confdefs.h. */
5781
if ac_fn_c_try_compile "$LINENO"; then :
5782
xorg_testset_unused_command_line_argument=yes
5784
xorg_testset_unused_command_line_argument=no
5786
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5788
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5789
CFLAGS="$xorg_testset_save_CFLAGS"
5794
if test $found = "no" ; then
5795
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5796
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5799
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5800
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5803
CFLAGS="$CFLAGS -Wcast-qual"
5805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
5806
$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
5807
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808
/* end confdefs.h. */
5818
if ac_fn_c_try_link "$LINENO"; then :
5823
rm -f core conftest.err conftest.$ac_objext \
5824
conftest$ac_exeext conftest.$ac_ext
5825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5826
$as_echo "$supported" >&6; }
5827
CFLAGS="$xorg_testset_save_CFLAGS"
5829
if test "$supported" = "yes" ; then
5830
BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
5841
xorg_testset_save_CFLAGS="$CFLAGS"
5843
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5844
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5846
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5847
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848
/* end confdefs.h. */
5851
if ac_fn_c_try_compile "$LINENO"; then :
5852
xorg_testset_unknown_warning_option=yes
5854
xorg_testset_unknown_warning_option=no
5856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5858
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5859
CFLAGS="$xorg_testset_save_CFLAGS"
5862
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5863
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5864
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5867
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5868
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5869
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870
/* end confdefs.h. */
5873
if ac_fn_c_try_compile "$LINENO"; then :
5874
xorg_testset_unused_command_line_argument=yes
5876
xorg_testset_unused_command_line_argument=no
5878
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5880
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5881
CFLAGS="$xorg_testset_save_CFLAGS"
5886
if test $found = "no" ; then
5887
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5888
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5891
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5892
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5895
CFLAGS="$CFLAGS -Wmissing-noreturn"
5897
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
5898
$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
5899
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900
/* end confdefs.h. */
5910
if ac_fn_c_try_link "$LINENO"; then :
5915
rm -f core conftest.err conftest.$ac_objext \
5916
conftest$ac_exeext conftest.$ac_ext
5917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5918
$as_echo "$supported" >&6; }
5919
CFLAGS="$xorg_testset_save_CFLAGS"
5921
if test "$supported" = "yes" ; then
5922
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
5933
xorg_testset_save_CFLAGS="$CFLAGS"
5935
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5936
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5938
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5939
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940
/* end confdefs.h. */
5943
if ac_fn_c_try_compile "$LINENO"; then :
5944
xorg_testset_unknown_warning_option=yes
5946
xorg_testset_unknown_warning_option=no
5948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
5950
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
5951
CFLAGS="$xorg_testset_save_CFLAGS"
5954
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5955
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5956
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5958
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5960
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5961
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962
/* end confdefs.h. */
5965
if ac_fn_c_try_compile "$LINENO"; then :
5966
xorg_testset_unused_command_line_argument=yes
5968
xorg_testset_unused_command_line_argument=no
5970
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
5972
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
5973
CFLAGS="$xorg_testset_save_CFLAGS"
5978
if test $found = "no" ; then
5979
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5980
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5983
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5984
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5987
CFLAGS="$CFLAGS -Wmissing-format-attribute"
5989
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
5990
$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
5991
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992
/* end confdefs.h. */
6002
if ac_fn_c_try_link "$LINENO"; then :
6007
rm -f core conftest.err conftest.$ac_objext \
6008
conftest$ac_exeext conftest.$ac_ext
6009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6010
$as_echo "$supported" >&6; }
6011
CFLAGS="$xorg_testset_save_CFLAGS"
6013
if test "$supported" = "yes" ; then
6014
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6025
xorg_testset_save_CFLAGS="$CFLAGS"
6027
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6028
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6030
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6031
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032
/* end confdefs.h. */
6035
if ac_fn_c_try_compile "$LINENO"; then :
6036
xorg_testset_unknown_warning_option=yes
6038
xorg_testset_unknown_warning_option=no
6040
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6042
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6043
CFLAGS="$xorg_testset_save_CFLAGS"
6046
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6047
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6048
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6050
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6051
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6052
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6053
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054
/* end confdefs.h. */
6057
if ac_fn_c_try_compile "$LINENO"; then :
6058
xorg_testset_unused_command_line_argument=yes
6060
xorg_testset_unused_command_line_argument=no
6062
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6064
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6065
CFLAGS="$xorg_testset_save_CFLAGS"
6070
if test $found = "no" ; then
6071
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6072
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6075
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6076
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6079
CFLAGS="$CFLAGS -Wredundant-decls"
6081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6082
$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6083
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084
/* end confdefs.h. */
6094
if ac_fn_c_try_link "$LINENO"; then :
6099
rm -f core conftest.err conftest.$ac_objext \
6100
conftest$ac_exeext conftest.$ac_ext
6101
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6102
$as_echo "$supported" >&6; }
6103
CFLAGS="$xorg_testset_save_CFLAGS"
6105
if test "$supported" = "yes" ; then
6106
BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6113
# These are currently disabled because they are noisy. They will be enabled
6114
# in the future once the codebase is sufficiently modernized to silence
6115
# them. For now, I don't want them to drown out the other warnings.
6116
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6117
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6118
# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6120
# Turn some warnings into errors, so we don't accidently get successful builds
6121
# when there are problems that should be fixed.
6123
if test "x$SELECTIVE_WERROR" = "xyes" ; then
6129
xorg_testset_save_CFLAGS="$CFLAGS"
6131
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6132
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6134
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6135
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136
/* end confdefs.h. */
6139
if ac_fn_c_try_compile "$LINENO"; then :
6140
xorg_testset_unknown_warning_option=yes
6142
xorg_testset_unknown_warning_option=no
6144
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6146
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6147
CFLAGS="$xorg_testset_save_CFLAGS"
6150
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6151
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6152
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6154
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6156
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6157
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158
/* end confdefs.h. */
6161
if ac_fn_c_try_compile "$LINENO"; then :
6162
xorg_testset_unused_command_line_argument=yes
6164
xorg_testset_unused_command_line_argument=no
6166
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6168
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6169
CFLAGS="$xorg_testset_save_CFLAGS"
6174
if test $found = "no" ; then
6175
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6176
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6179
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6180
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6183
CFLAGS="$CFLAGS -Werror=implicit"
6185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6186
$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6187
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188
/* end confdefs.h. */
6198
if ac_fn_c_try_link "$LINENO"; then :
6203
rm -f core conftest.err conftest.$ac_objext \
6204
conftest$ac_exeext conftest.$ac_ext
6205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6206
$as_echo "$supported" >&6; }
6207
CFLAGS="$xorg_testset_save_CFLAGS"
6209
if test "$supported" = "yes" ; then
6210
BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6215
if test $found = "no" ; then
6216
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6217
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6220
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6221
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6224
CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6227
$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6228
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229
/* end confdefs.h. */
6239
if ac_fn_c_try_link "$LINENO"; then :
6244
rm -f core conftest.err conftest.$ac_objext \
6245
conftest$ac_exeext conftest.$ac_ext
6246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6247
$as_echo "$supported" >&6; }
6248
CFLAGS="$xorg_testset_save_CFLAGS"
6250
if test "$supported" = "yes" ; then
6251
BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6262
xorg_testset_save_CFLAGS="$CFLAGS"
6264
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6265
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6267
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6268
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269
/* end confdefs.h. */
6272
if ac_fn_c_try_compile "$LINENO"; then :
6273
xorg_testset_unknown_warning_option=yes
6275
xorg_testset_unknown_warning_option=no
6277
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6279
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6280
CFLAGS="$xorg_testset_save_CFLAGS"
6283
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6284
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6285
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6287
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6288
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6289
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6290
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291
/* end confdefs.h. */
6294
if ac_fn_c_try_compile "$LINENO"; then :
6295
xorg_testset_unused_command_line_argument=yes
6297
xorg_testset_unused_command_line_argument=no
6299
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6301
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6302
CFLAGS="$xorg_testset_save_CFLAGS"
6307
if test $found = "no" ; then
6308
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6309
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6312
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6313
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6316
CFLAGS="$CFLAGS -Werror=nonnull"
6318
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6319
$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6320
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321
/* end confdefs.h. */
6331
if ac_fn_c_try_link "$LINENO"; then :
6336
rm -f core conftest.err conftest.$ac_objext \
6337
conftest$ac_exeext conftest.$ac_ext
6338
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6339
$as_echo "$supported" >&6; }
6340
CFLAGS="$xorg_testset_save_CFLAGS"
6342
if test "$supported" = "yes" ; then
6343
BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6354
xorg_testset_save_CFLAGS="$CFLAGS"
6356
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6357
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6359
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6360
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361
/* end confdefs.h. */
6364
if ac_fn_c_try_compile "$LINENO"; then :
6365
xorg_testset_unknown_warning_option=yes
6367
xorg_testset_unknown_warning_option=no
6369
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6371
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6372
CFLAGS="$xorg_testset_save_CFLAGS"
6375
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6376
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6377
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6381
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6382
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383
/* end confdefs.h. */
6386
if ac_fn_c_try_compile "$LINENO"; then :
6387
xorg_testset_unused_command_line_argument=yes
6389
xorg_testset_unused_command_line_argument=no
6391
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6393
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6394
CFLAGS="$xorg_testset_save_CFLAGS"
6399
if test $found = "no" ; then
6400
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6401
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6405
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6408
CFLAGS="$CFLAGS -Werror=init-self"
6410
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6411
$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6412
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413
/* end confdefs.h. */
6423
if ac_fn_c_try_link "$LINENO"; then :
6428
rm -f core conftest.err conftest.$ac_objext \
6429
conftest$ac_exeext conftest.$ac_ext
6430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6431
$as_echo "$supported" >&6; }
6432
CFLAGS="$xorg_testset_save_CFLAGS"
6434
if test "$supported" = "yes" ; then
6435
BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6446
xorg_testset_save_CFLAGS="$CFLAGS"
6448
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6449
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6451
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6452
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453
/* end confdefs.h. */
6456
if ac_fn_c_try_compile "$LINENO"; then :
6457
xorg_testset_unknown_warning_option=yes
6459
xorg_testset_unknown_warning_option=no
6461
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6463
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6464
CFLAGS="$xorg_testset_save_CFLAGS"
6467
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6468
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6469
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6471
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6473
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6474
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475
/* end confdefs.h. */
6478
if ac_fn_c_try_compile "$LINENO"; then :
6479
xorg_testset_unused_command_line_argument=yes
6481
xorg_testset_unused_command_line_argument=no
6483
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6485
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6486
CFLAGS="$xorg_testset_save_CFLAGS"
6491
if test $found = "no" ; then
6492
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6493
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6496
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6497
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6500
CFLAGS="$CFLAGS -Werror=main"
6502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6503
$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6504
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505
/* end confdefs.h. */
6515
if ac_fn_c_try_link "$LINENO"; then :
6520
rm -f core conftest.err conftest.$ac_objext \
6521
conftest$ac_exeext conftest.$ac_ext
6522
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6523
$as_echo "$supported" >&6; }
6524
CFLAGS="$xorg_testset_save_CFLAGS"
6526
if test "$supported" = "yes" ; then
6527
BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6538
xorg_testset_save_CFLAGS="$CFLAGS"
6540
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6541
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6543
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6544
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545
/* end confdefs.h. */
6548
if ac_fn_c_try_compile "$LINENO"; then :
6549
xorg_testset_unknown_warning_option=yes
6551
xorg_testset_unknown_warning_option=no
6553
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6555
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6556
CFLAGS="$xorg_testset_save_CFLAGS"
6559
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6560
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6561
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6563
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6565
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6566
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567
/* end confdefs.h. */
6570
if ac_fn_c_try_compile "$LINENO"; then :
6571
xorg_testset_unused_command_line_argument=yes
6573
xorg_testset_unused_command_line_argument=no
6575
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6577
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6578
CFLAGS="$xorg_testset_save_CFLAGS"
6583
if test $found = "no" ; then
6584
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6585
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6588
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6589
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6592
CFLAGS="$CFLAGS -Werror=missing-braces"
6594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6595
$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6596
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597
/* end confdefs.h. */
6607
if ac_fn_c_try_link "$LINENO"; then :
6612
rm -f core conftest.err conftest.$ac_objext \
6613
conftest$ac_exeext conftest.$ac_ext
6614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6615
$as_echo "$supported" >&6; }
6616
CFLAGS="$xorg_testset_save_CFLAGS"
6618
if test "$supported" = "yes" ; then
6619
BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6630
xorg_testset_save_CFLAGS="$CFLAGS"
6632
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6633
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6634
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6635
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6636
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637
/* end confdefs.h. */
6640
if ac_fn_c_try_compile "$LINENO"; then :
6641
xorg_testset_unknown_warning_option=yes
6643
xorg_testset_unknown_warning_option=no
6645
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6647
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6648
CFLAGS="$xorg_testset_save_CFLAGS"
6651
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6652
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6653
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6655
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6657
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6658
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659
/* end confdefs.h. */
6662
if ac_fn_c_try_compile "$LINENO"; then :
6663
xorg_testset_unused_command_line_argument=yes
6665
xorg_testset_unused_command_line_argument=no
6667
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6669
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6670
CFLAGS="$xorg_testset_save_CFLAGS"
6675
if test $found = "no" ; then
6676
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6677
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6680
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6681
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6684
CFLAGS="$CFLAGS -Werror=sequence-point"
6686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
6687
$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
6688
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689
/* end confdefs.h. */
6699
if ac_fn_c_try_link "$LINENO"; then :
6704
rm -f core conftest.err conftest.$ac_objext \
6705
conftest$ac_exeext conftest.$ac_ext
6706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6707
$as_echo "$supported" >&6; }
6708
CFLAGS="$xorg_testset_save_CFLAGS"
6710
if test "$supported" = "yes" ; then
6711
BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
6722
xorg_testset_save_CFLAGS="$CFLAGS"
6724
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6725
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6726
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6727
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6728
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729
/* end confdefs.h. */
6732
if ac_fn_c_try_compile "$LINENO"; then :
6733
xorg_testset_unknown_warning_option=yes
6735
xorg_testset_unknown_warning_option=no
6737
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6739
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6740
CFLAGS="$xorg_testset_save_CFLAGS"
6743
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6744
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6745
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6747
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6749
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6750
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751
/* end confdefs.h. */
6754
if ac_fn_c_try_compile "$LINENO"; then :
6755
xorg_testset_unused_command_line_argument=yes
6757
xorg_testset_unused_command_line_argument=no
6759
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6761
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6762
CFLAGS="$xorg_testset_save_CFLAGS"
6767
if test $found = "no" ; then
6768
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6769
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6772
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6773
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6776
CFLAGS="$CFLAGS -Werror=return-type"
6778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
6779
$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
6780
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781
/* end confdefs.h. */
6791
if ac_fn_c_try_link "$LINENO"; then :
6796
rm -f core conftest.err conftest.$ac_objext \
6797
conftest$ac_exeext conftest.$ac_ext
6798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6799
$as_echo "$supported" >&6; }
6800
CFLAGS="$xorg_testset_save_CFLAGS"
6802
if test "$supported" = "yes" ; then
6803
BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
6808
if test $found = "no" ; then
6809
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6810
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6814
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6817
CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
6819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
6820
$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
6821
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822
/* end confdefs.h. */
6832
if ac_fn_c_try_link "$LINENO"; then :
6837
rm -f core conftest.err conftest.$ac_objext \
6838
conftest$ac_exeext conftest.$ac_ext
6839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6840
$as_echo "$supported" >&6; }
6841
CFLAGS="$xorg_testset_save_CFLAGS"
6843
if test "$supported" = "yes" ; then
6844
BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
6855
xorg_testset_save_CFLAGS="$CFLAGS"
6857
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6858
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6860
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6861
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862
/* end confdefs.h. */
6865
if ac_fn_c_try_compile "$LINENO"; then :
6866
xorg_testset_unknown_warning_option=yes
6868
xorg_testset_unknown_warning_option=no
6870
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6872
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6873
CFLAGS="$xorg_testset_save_CFLAGS"
6876
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6877
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6878
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6880
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6882
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6883
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884
/* end confdefs.h. */
6887
if ac_fn_c_try_compile "$LINENO"; then :
6888
xorg_testset_unused_command_line_argument=yes
6890
xorg_testset_unused_command_line_argument=no
6892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6894
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6895
CFLAGS="$xorg_testset_save_CFLAGS"
6900
if test $found = "no" ; then
6901
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6902
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6905
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6906
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6909
CFLAGS="$CFLAGS -Werror=trigraphs"
6911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
6912
$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
6913
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914
/* end confdefs.h. */
6924
if ac_fn_c_try_link "$LINENO"; then :
6929
rm -f core conftest.err conftest.$ac_objext \
6930
conftest$ac_exeext conftest.$ac_ext
6931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6932
$as_echo "$supported" >&6; }
6933
CFLAGS="$xorg_testset_save_CFLAGS"
6935
if test "$supported" = "yes" ; then
6936
BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
6947
xorg_testset_save_CFLAGS="$CFLAGS"
6949
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6950
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6951
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6952
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6953
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954
/* end confdefs.h. */
6957
if ac_fn_c_try_compile "$LINENO"; then :
6958
xorg_testset_unknown_warning_option=yes
6960
xorg_testset_unknown_warning_option=no
6962
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
6964
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
6965
CFLAGS="$xorg_testset_save_CFLAGS"
6968
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6969
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6970
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6972
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6974
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6975
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976
/* end confdefs.h. */
6979
if ac_fn_c_try_compile "$LINENO"; then :
6980
xorg_testset_unused_command_line_argument=yes
6982
xorg_testset_unused_command_line_argument=no
6984
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
6986
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
6987
CFLAGS="$xorg_testset_save_CFLAGS"
6992
if test $found = "no" ; then
6993
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6994
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6997
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6998
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7001
CFLAGS="$CFLAGS -Werror=array-bounds"
7003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7004
$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7005
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006
/* end confdefs.h. */
7016
if ac_fn_c_try_link "$LINENO"; then :
7021
rm -f core conftest.err conftest.$ac_objext \
7022
conftest$ac_exeext conftest.$ac_ext
7023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7024
$as_echo "$supported" >&6; }
7025
CFLAGS="$xorg_testset_save_CFLAGS"
7027
if test "$supported" = "yes" ; then
7028
BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7039
xorg_testset_save_CFLAGS="$CFLAGS"
7041
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7042
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7044
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7045
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046
/* end confdefs.h. */
7049
if ac_fn_c_try_compile "$LINENO"; then :
7050
xorg_testset_unknown_warning_option=yes
7052
xorg_testset_unknown_warning_option=no
7054
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7056
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7057
CFLAGS="$xorg_testset_save_CFLAGS"
7060
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7061
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7062
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7064
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7066
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7067
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068
/* end confdefs.h. */
7071
if ac_fn_c_try_compile "$LINENO"; then :
7072
xorg_testset_unused_command_line_argument=yes
7074
xorg_testset_unused_command_line_argument=no
7076
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7077
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7078
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7079
CFLAGS="$xorg_testset_save_CFLAGS"
7084
if test $found = "no" ; then
7085
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7086
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7089
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7090
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7093
CFLAGS="$CFLAGS -Werror=write-strings"
7095
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7096
$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7097
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098
/* end confdefs.h. */
7108
if ac_fn_c_try_link "$LINENO"; then :
7113
rm -f core conftest.err conftest.$ac_objext \
7114
conftest$ac_exeext conftest.$ac_ext
7115
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7116
$as_echo "$supported" >&6; }
7117
CFLAGS="$xorg_testset_save_CFLAGS"
7119
if test "$supported" = "yes" ; then
7120
BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7131
xorg_testset_save_CFLAGS="$CFLAGS"
7133
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7134
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7136
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7137
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138
/* end confdefs.h. */
7141
if ac_fn_c_try_compile "$LINENO"; then :
7142
xorg_testset_unknown_warning_option=yes
7144
xorg_testset_unknown_warning_option=no
7146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7148
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7149
CFLAGS="$xorg_testset_save_CFLAGS"
7152
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7153
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7154
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7156
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7158
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7159
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160
/* end confdefs.h. */
7163
if ac_fn_c_try_compile "$LINENO"; then :
7164
xorg_testset_unused_command_line_argument=yes
7166
xorg_testset_unused_command_line_argument=no
7168
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7170
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7171
CFLAGS="$xorg_testset_save_CFLAGS"
7176
if test $found = "no" ; then
7177
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7178
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7181
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7182
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7185
CFLAGS="$CFLAGS -Werror=address"
7187
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7188
$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7189
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190
/* end confdefs.h. */
7200
if ac_fn_c_try_link "$LINENO"; then :
7205
rm -f core conftest.err conftest.$ac_objext \
7206
conftest$ac_exeext conftest.$ac_ext
7207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7208
$as_echo "$supported" >&6; }
7209
CFLAGS="$xorg_testset_save_CFLAGS"
7211
if test "$supported" = "yes" ; then
7212
BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7223
xorg_testset_save_CFLAGS="$CFLAGS"
7225
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7226
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7227
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7228
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7229
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230
/* end confdefs.h. */
7233
if ac_fn_c_try_compile "$LINENO"; then :
7234
xorg_testset_unknown_warning_option=yes
7236
xorg_testset_unknown_warning_option=no
7238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7240
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7241
CFLAGS="$xorg_testset_save_CFLAGS"
7244
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7245
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7246
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7248
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7250
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7251
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252
/* end confdefs.h. */
7255
if ac_fn_c_try_compile "$LINENO"; then :
7256
xorg_testset_unused_command_line_argument=yes
7258
xorg_testset_unused_command_line_argument=no
7260
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7262
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7263
CFLAGS="$xorg_testset_save_CFLAGS"
7268
if test $found = "no" ; then
7269
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7270
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7273
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7274
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7277
CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7280
$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7281
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282
/* end confdefs.h. */
7292
if ac_fn_c_try_link "$LINENO"; then :
7297
rm -f core conftest.err conftest.$ac_objext \
7298
conftest$ac_exeext conftest.$ac_ext
7299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7300
$as_echo "$supported" >&6; }
7301
CFLAGS="$xorg_testset_save_CFLAGS"
7303
if test "$supported" = "yes" ; then
7304
BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7309
if test $found = "no" ; then
7310
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7311
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7314
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7315
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7318
CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7321
$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7322
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323
/* end confdefs.h. */
7333
if ac_fn_c_try_link "$LINENO"; then :
7338
rm -f core conftest.err conftest.$ac_objext \
7339
conftest$ac_exeext conftest.$ac_ext
7340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7341
$as_echo "$supported" >&6; }
7342
CFLAGS="$xorg_testset_save_CFLAGS"
7344
if test "$supported" = "yes" ; then
7345
BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7356
xorg_testset_save_CFLAGS="$CFLAGS"
7358
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7359
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7360
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7361
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7362
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363
/* end confdefs.h. */
7366
if ac_fn_c_try_compile "$LINENO"; then :
7367
xorg_testset_unknown_warning_option=yes
7369
xorg_testset_unknown_warning_option=no
7371
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7373
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7374
CFLAGS="$xorg_testset_save_CFLAGS"
7377
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7378
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7379
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7382
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7383
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7384
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385
/* end confdefs.h. */
7388
if ac_fn_c_try_compile "$LINENO"; then :
7389
xorg_testset_unused_command_line_argument=yes
7391
xorg_testset_unused_command_line_argument=no
7393
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7395
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7396
CFLAGS="$xorg_testset_save_CFLAGS"
7401
if test $found = "no" ; then
7402
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7403
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7406
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7407
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7410
CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7412
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7413
$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7414
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415
/* end confdefs.h. */
7425
if ac_fn_c_try_link "$LINENO"; then :
7430
rm -f core conftest.err conftest.$ac_objext \
7431
conftest$ac_exeext conftest.$ac_ext
7432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7433
$as_echo "$supported" >&6; }
7434
CFLAGS="$xorg_testset_save_CFLAGS"
7436
if test "$supported" = "yes" ; then
7437
BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7442
# Also -errwarn=E_BAD_PTR_INT_COMBINATION
7444
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
7445
$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
7451
xorg_testset_save_CFLAGS="$CFLAGS"
7453
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7454
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7456
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7457
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458
/* end confdefs.h. */
7461
if ac_fn_c_try_compile "$LINENO"; then :
7462
xorg_testset_unknown_warning_option=yes
7464
xorg_testset_unknown_warning_option=no
7466
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7468
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7469
CFLAGS="$xorg_testset_save_CFLAGS"
7472
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7473
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7474
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7476
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7477
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7478
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7479
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480
/* end confdefs.h. */
7483
if ac_fn_c_try_compile "$LINENO"; then :
7484
xorg_testset_unused_command_line_argument=yes
7486
xorg_testset_unused_command_line_argument=no
7488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7490
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7491
CFLAGS="$xorg_testset_save_CFLAGS"
7496
if test $found = "no" ; then
7497
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7498
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7501
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7502
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7505
CFLAGS="$CFLAGS -Wimplicit"
7507
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
7508
$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
7509
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510
/* end confdefs.h. */
7520
if ac_fn_c_try_link "$LINENO"; then :
7525
rm -f core conftest.err conftest.$ac_objext \
7526
conftest$ac_exeext conftest.$ac_ext
7527
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7528
$as_echo "$supported" >&6; }
7529
CFLAGS="$xorg_testset_save_CFLAGS"
7531
if test "$supported" = "yes" ; then
7532
BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
7543
xorg_testset_save_CFLAGS="$CFLAGS"
7545
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7546
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7547
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7548
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7549
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550
/* end confdefs.h. */
7553
if ac_fn_c_try_compile "$LINENO"; then :
7554
xorg_testset_unknown_warning_option=yes
7556
xorg_testset_unknown_warning_option=no
7558
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7560
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7561
CFLAGS="$xorg_testset_save_CFLAGS"
7564
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7565
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7566
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7568
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7569
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7570
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7571
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572
/* end confdefs.h. */
7575
if ac_fn_c_try_compile "$LINENO"; then :
7576
xorg_testset_unused_command_line_argument=yes
7578
xorg_testset_unused_command_line_argument=no
7580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7582
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7583
CFLAGS="$xorg_testset_save_CFLAGS"
7588
if test $found = "no" ; then
7589
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7590
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7593
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7594
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7597
CFLAGS="$CFLAGS -Wnonnull"
7599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
7600
$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
7601
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602
/* end confdefs.h. */
7612
if ac_fn_c_try_link "$LINENO"; then :
7617
rm -f core conftest.err conftest.$ac_objext \
7618
conftest$ac_exeext conftest.$ac_ext
7619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7620
$as_echo "$supported" >&6; }
7621
CFLAGS="$xorg_testset_save_CFLAGS"
7623
if test "$supported" = "yes" ; then
7624
BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
7635
xorg_testset_save_CFLAGS="$CFLAGS"
7637
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7638
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7639
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7640
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7641
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642
/* end confdefs.h. */
7645
if ac_fn_c_try_compile "$LINENO"; then :
7646
xorg_testset_unknown_warning_option=yes
7648
xorg_testset_unknown_warning_option=no
7650
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7652
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7653
CFLAGS="$xorg_testset_save_CFLAGS"
7656
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7657
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7658
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7660
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7662
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7663
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664
/* end confdefs.h. */
7667
if ac_fn_c_try_compile "$LINENO"; then :
7668
xorg_testset_unused_command_line_argument=yes
7670
xorg_testset_unused_command_line_argument=no
7672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7674
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7675
CFLAGS="$xorg_testset_save_CFLAGS"
7680
if test $found = "no" ; then
7681
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7682
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7685
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7686
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7689
CFLAGS="$CFLAGS -Winit-self"
7691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
7692
$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
7693
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694
/* end confdefs.h. */
7704
if ac_fn_c_try_link "$LINENO"; then :
7709
rm -f core conftest.err conftest.$ac_objext \
7710
conftest$ac_exeext conftest.$ac_ext
7711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7712
$as_echo "$supported" >&6; }
7713
CFLAGS="$xorg_testset_save_CFLAGS"
7715
if test "$supported" = "yes" ; then
7716
BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
7727
xorg_testset_save_CFLAGS="$CFLAGS"
7729
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7730
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7732
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7733
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734
/* end confdefs.h. */
7737
if ac_fn_c_try_compile "$LINENO"; then :
7738
xorg_testset_unknown_warning_option=yes
7740
xorg_testset_unknown_warning_option=no
7742
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7744
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7745
CFLAGS="$xorg_testset_save_CFLAGS"
7748
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7749
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7750
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7752
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7754
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7755
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756
/* end confdefs.h. */
7759
if ac_fn_c_try_compile "$LINENO"; then :
7760
xorg_testset_unused_command_line_argument=yes
7762
xorg_testset_unused_command_line_argument=no
7764
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7766
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7767
CFLAGS="$xorg_testset_save_CFLAGS"
7772
if test $found = "no" ; then
7773
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7774
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7777
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7778
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7781
CFLAGS="$CFLAGS -Wmain"
7783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
7784
$as_echo_n "checking if $CC supports -Wmain... " >&6; }
7785
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786
/* end confdefs.h. */
7796
if ac_fn_c_try_link "$LINENO"; then :
7801
rm -f core conftest.err conftest.$ac_objext \
7802
conftest$ac_exeext conftest.$ac_ext
7803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7804
$as_echo "$supported" >&6; }
7805
CFLAGS="$xorg_testset_save_CFLAGS"
7807
if test "$supported" = "yes" ; then
7808
BASE_CFLAGS="$BASE_CFLAGS -Wmain"
7819
xorg_testset_save_CFLAGS="$CFLAGS"
7821
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7822
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7824
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7825
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826
/* end confdefs.h. */
7829
if ac_fn_c_try_compile "$LINENO"; then :
7830
xorg_testset_unknown_warning_option=yes
7832
xorg_testset_unknown_warning_option=no
7834
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7836
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7837
CFLAGS="$xorg_testset_save_CFLAGS"
7840
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7841
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7842
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7846
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7847
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848
/* end confdefs.h. */
7851
if ac_fn_c_try_compile "$LINENO"; then :
7852
xorg_testset_unused_command_line_argument=yes
7854
xorg_testset_unused_command_line_argument=no
7856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7858
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7859
CFLAGS="$xorg_testset_save_CFLAGS"
7864
if test $found = "no" ; then
7865
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7866
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7869
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7870
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7873
CFLAGS="$CFLAGS -Wmissing-braces"
7875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
7876
$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
7877
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878
/* end confdefs.h. */
7888
if ac_fn_c_try_link "$LINENO"; then :
7893
rm -f core conftest.err conftest.$ac_objext \
7894
conftest$ac_exeext conftest.$ac_ext
7895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7896
$as_echo "$supported" >&6; }
7897
CFLAGS="$xorg_testset_save_CFLAGS"
7899
if test "$supported" = "yes" ; then
7900
BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
7911
xorg_testset_save_CFLAGS="$CFLAGS"
7913
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7914
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7915
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7916
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7917
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918
/* end confdefs.h. */
7921
if ac_fn_c_try_compile "$LINENO"; then :
7922
xorg_testset_unknown_warning_option=yes
7924
xorg_testset_unknown_warning_option=no
7926
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
7928
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
7929
CFLAGS="$xorg_testset_save_CFLAGS"
7932
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7933
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7934
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7936
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7938
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7939
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940
/* end confdefs.h. */
7943
if ac_fn_c_try_compile "$LINENO"; then :
7944
xorg_testset_unused_command_line_argument=yes
7946
xorg_testset_unused_command_line_argument=no
7948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
7950
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
7951
CFLAGS="$xorg_testset_save_CFLAGS"
7956
if test $found = "no" ; then
7957
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7958
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7961
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7962
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7965
CFLAGS="$CFLAGS -Wsequence-point"
7967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
7968
$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
7969
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970
/* end confdefs.h. */
7980
if ac_fn_c_try_link "$LINENO"; then :
7985
rm -f core conftest.err conftest.$ac_objext \
7986
conftest$ac_exeext conftest.$ac_ext
7987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7988
$as_echo "$supported" >&6; }
7989
CFLAGS="$xorg_testset_save_CFLAGS"
7991
if test "$supported" = "yes" ; then
7992
BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8003
xorg_testset_save_CFLAGS="$CFLAGS"
8005
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8006
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8008
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8009
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010
/* end confdefs.h. */
8013
if ac_fn_c_try_compile "$LINENO"; then :
8014
xorg_testset_unknown_warning_option=yes
8016
xorg_testset_unknown_warning_option=no
8018
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8020
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
8021
CFLAGS="$xorg_testset_save_CFLAGS"
8024
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8025
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8026
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8028
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8029
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8030
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8031
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032
/* end confdefs.h. */
8035
if ac_fn_c_try_compile "$LINENO"; then :
8036
xorg_testset_unused_command_line_argument=yes
8038
xorg_testset_unused_command_line_argument=no
8040
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8042
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8043
CFLAGS="$xorg_testset_save_CFLAGS"
8048
if test $found = "no" ; then
8049
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8050
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8053
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8054
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8057
CFLAGS="$CFLAGS -Wreturn-type"
8059
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8060
$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8061
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062
/* end confdefs.h. */
8072
if ac_fn_c_try_link "$LINENO"; then :
8077
rm -f core conftest.err conftest.$ac_objext \
8078
conftest$ac_exeext conftest.$ac_ext
8079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8080
$as_echo "$supported" >&6; }
8081
CFLAGS="$xorg_testset_save_CFLAGS"
8083
if test "$supported" = "yes" ; then
8084
BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8095
xorg_testset_save_CFLAGS="$CFLAGS"
8097
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8098
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8099
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8100
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8101
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102
/* end confdefs.h. */
8105
if ac_fn_c_try_compile "$LINENO"; then :
8106
xorg_testset_unknown_warning_option=yes
8108
xorg_testset_unknown_warning_option=no
8110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8112
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
8113
CFLAGS="$xorg_testset_save_CFLAGS"
8116
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8117
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8118
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8121
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8122
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8123
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124
/* end confdefs.h. */
8127
if ac_fn_c_try_compile "$LINENO"; then :
8128
xorg_testset_unused_command_line_argument=yes
8130
xorg_testset_unused_command_line_argument=no
8132
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8134
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8135
CFLAGS="$xorg_testset_save_CFLAGS"
8140
if test $found = "no" ; then
8141
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8142
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8146
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8149
CFLAGS="$CFLAGS -Wtrigraphs"
8151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8152
$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8153
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154
/* end confdefs.h. */
8164
if ac_fn_c_try_link "$LINENO"; then :
8169
rm -f core conftest.err conftest.$ac_objext \
8170
conftest$ac_exeext conftest.$ac_ext
8171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8172
$as_echo "$supported" >&6; }
8173
CFLAGS="$xorg_testset_save_CFLAGS"
8175
if test "$supported" = "yes" ; then
8176
BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8187
xorg_testset_save_CFLAGS="$CFLAGS"
8189
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8190
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8192
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8193
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194
/* end confdefs.h. */
8197
if ac_fn_c_try_compile "$LINENO"; then :
8198
xorg_testset_unknown_warning_option=yes
8200
xorg_testset_unknown_warning_option=no
8202
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8204
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
8205
CFLAGS="$xorg_testset_save_CFLAGS"
8208
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8209
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8210
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8212
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8214
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8215
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216
/* end confdefs.h. */
8219
if ac_fn_c_try_compile "$LINENO"; then :
8220
xorg_testset_unused_command_line_argument=yes
8222
xorg_testset_unused_command_line_argument=no
8224
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8226
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8227
CFLAGS="$xorg_testset_save_CFLAGS"
8232
if test $found = "no" ; then
8233
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8234
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8237
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8238
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8241
CFLAGS="$CFLAGS -Warray-bounds"
8243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8244
$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8245
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246
/* end confdefs.h. */
8256
if ac_fn_c_try_link "$LINENO"; then :
8261
rm -f core conftest.err conftest.$ac_objext \
8262
conftest$ac_exeext conftest.$ac_ext
8263
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8264
$as_echo "$supported" >&6; }
8265
CFLAGS="$xorg_testset_save_CFLAGS"
8267
if test "$supported" = "yes" ; then
8268
BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8279
xorg_testset_save_CFLAGS="$CFLAGS"
8281
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8282
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8284
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8285
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286
/* end confdefs.h. */
8289
if ac_fn_c_try_compile "$LINENO"; then :
8290
xorg_testset_unknown_warning_option=yes
8292
xorg_testset_unknown_warning_option=no
8294
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8296
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
8297
CFLAGS="$xorg_testset_save_CFLAGS"
8300
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8301
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8302
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8306
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8307
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308
/* end confdefs.h. */
8311
if ac_fn_c_try_compile "$LINENO"; then :
8312
xorg_testset_unused_command_line_argument=yes
8314
xorg_testset_unused_command_line_argument=no
8316
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8318
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8319
CFLAGS="$xorg_testset_save_CFLAGS"
8324
if test $found = "no" ; then
8325
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8326
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8329
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8330
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8333
CFLAGS="$CFLAGS -Wwrite-strings"
8335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
8336
$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
8337
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338
/* end confdefs.h. */
8348
if ac_fn_c_try_link "$LINENO"; then :
8353
rm -f core conftest.err conftest.$ac_objext \
8354
conftest$ac_exeext conftest.$ac_ext
8355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8356
$as_echo "$supported" >&6; }
8357
CFLAGS="$xorg_testset_save_CFLAGS"
8359
if test "$supported" = "yes" ; then
8360
BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
8371
xorg_testset_save_CFLAGS="$CFLAGS"
8373
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8374
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8376
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8377
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378
/* end confdefs.h. */
8381
if ac_fn_c_try_compile "$LINENO"; then :
8382
xorg_testset_unknown_warning_option=yes
8384
xorg_testset_unknown_warning_option=no
8386
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8388
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
8389
CFLAGS="$xorg_testset_save_CFLAGS"
8392
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8393
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8394
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8396
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8398
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8399
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400
/* end confdefs.h. */
8403
if ac_fn_c_try_compile "$LINENO"; then :
8404
xorg_testset_unused_command_line_argument=yes
8406
xorg_testset_unused_command_line_argument=no
8408
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8410
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8411
CFLAGS="$xorg_testset_save_CFLAGS"
8416
if test $found = "no" ; then
8417
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8418
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8422
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8425
CFLAGS="$CFLAGS -Waddress"
8427
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
8428
$as_echo_n "checking if $CC supports -Waddress... " >&6; }
8429
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430
/* end confdefs.h. */
8440
if ac_fn_c_try_link "$LINENO"; then :
8445
rm -f core conftest.err conftest.$ac_objext \
8446
conftest$ac_exeext conftest.$ac_ext
8447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8448
$as_echo "$supported" >&6; }
8449
CFLAGS="$xorg_testset_save_CFLAGS"
8451
if test "$supported" = "yes" ; then
8452
BASE_CFLAGS="$BASE_CFLAGS -Waddress"
8463
xorg_testset_save_CFLAGS="$CFLAGS"
8465
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8466
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8467
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8468
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8469
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470
/* end confdefs.h. */
8473
if ac_fn_c_try_compile "$LINENO"; then :
8474
xorg_testset_unknown_warning_option=yes
8476
xorg_testset_unknown_warning_option=no
8478
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8480
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
8481
CFLAGS="$xorg_testset_save_CFLAGS"
8484
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8485
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8486
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8488
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8490
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8491
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492
/* end confdefs.h. */
8495
if ac_fn_c_try_compile "$LINENO"; then :
8496
xorg_testset_unused_command_line_argument=yes
8498
xorg_testset_unused_command_line_argument=no
8500
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8502
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8503
CFLAGS="$xorg_testset_save_CFLAGS"
8508
if test $found = "no" ; then
8509
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8510
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8513
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8514
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8517
CFLAGS="$CFLAGS -Wint-to-pointer-cast"
8519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
8520
$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
8521
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522
/* end confdefs.h. */
8532
if ac_fn_c_try_link "$LINENO"; then :
8537
rm -f core conftest.err conftest.$ac_objext \
8538
conftest$ac_exeext conftest.$ac_ext
8539
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8540
$as_echo "$supported" >&6; }
8541
CFLAGS="$xorg_testset_save_CFLAGS"
8543
if test "$supported" = "yes" ; then
8544
BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
8555
xorg_testset_save_CFLAGS="$CFLAGS"
8557
if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8558
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8560
$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8561
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562
/* end confdefs.h. */
8565
if ac_fn_c_try_compile "$LINENO"; then :
8566
xorg_testset_unknown_warning_option=yes
8568
xorg_testset_unknown_warning_option=no
8570
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unknown_warning_option" >&5
8572
$as_echo "$xorg_testset_unknown_warning_option" >&6; }
8573
CFLAGS="$xorg_testset_save_CFLAGS"
8576
if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8577
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8578
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8580
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8581
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8582
$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8583
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584
/* end confdefs.h. */
8587
if ac_fn_c_try_compile "$LINENO"; then :
8588
xorg_testset_unused_command_line_argument=yes
8590
xorg_testset_unused_command_line_argument=no
8592
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_testset_unused_command_line_argument" >&5
8594
$as_echo "$xorg_testset_unused_command_line_argument" >&6; }
8595
CFLAGS="$xorg_testset_save_CFLAGS"
8600
if test $found = "no" ; then
8601
if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8602
CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8605
if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8606
CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8609
CFLAGS="$CFLAGS -Wpointer-to-int-cast"
8611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
8612
$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
8613
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614
/* end confdefs.h. */
8624
if ac_fn_c_try_link "$LINENO"; then :
8629
rm -f core conftest.err conftest.$ac_objext \
8630
conftest$ac_exeext conftest.$ac_ext
8631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8632
$as_echo "$supported" >&6; }
8633
CFLAGS="$xorg_testset_save_CFLAGS"
8635
if test "$supported" = "yes" ; then
8636
BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
8649
CWARNFLAGS="$BASE_CFLAGS"
4433
8650
if test "x$GCC" = xyes ; then
4434
CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4435
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4436
-Wbad-function-cast -Wformat=2"
4437
case `$CC -dumpversion` in
4439
CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4443
if test "x$SUNCC" = "xyes"; then
8651
CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
4450
# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89