~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Monty Taylor
  • Date: 2008-07-05 11:18:25 UTC
  • mto: This revision was merged to the branch mainline in revision 62.
  • Revision ID: monty@inaugust.com-20080705111825-50mrblrfc5n71l8e
Turned unreachable code warnings into a configure option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1183
1183
    [ac_warn_fail="$enableval"],
1184
1184
    [ac_warn_fail="no"])
1185
1185
 
 
1186
AC_ARG_ENABLE([unreachable],
 
1187
    [AS_HELP_STRING([--enable-unreachable],
 
1188
       [Enable warnings about unreachable code @<:@default=off@:>@])],
 
1189
    [ac_warn_unreachable="$enableval"],
 
1190
    [ac_warn_unreachable="no"])
 
1191
 
1186
1192
 
1187
1193
if test "$GCC" = "yes"
1188
1194
then
1193
1199
 
1194
1200
  if test "$ac_warn_pedantic" = "yes"
1195
1201
  then
1196
 
    #GCC_WARNINGS="${GCC_WARNINGS}  -std=gnu99 -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code"
1197
 
    #GXX_WARNINGS="${GXX_WARNINGS}  -std=gnu++98 -pedantic -Wundef -Wredundant-decls -Wunreachable-code"
1198
1202
    GCC_WARNINGS="${GCC_WARNINGS}  -std=gnu99 -pedantic -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls  "
1199
1203
    GXX_WARNINGS="${GXX_WARNINGS}  -std=gnu++98 -pedantic -Wundef -Wredundant-decls "
1200
1204
  fi
1201
1205
 
 
1206
  if test "$ac_warn_unreachable" = "yes"
 
1207
  then
 
1208
    GCC_WARNINGS="${GCC_WARNINGS} -Wunreachable-code"
 
1209
    GXX_WARNINGS="${GXX_WARNINGS} -Wunreachable-code"
 
1210
  fi
 
1211
 
1202
1212
  if test "$ac_warn_fail" = "yes"
1203
1213
  then
1204
1214
    GCC_WARNINGS="${GCC_WARNINGS} -Werror"