204
204
AS_IF([test "$ac_cv_safe_to_use_Wredundant_decls_" = "yes"],
205
205
[CXX_WARNINGS="${CXX_WARNINGS} -Wredundant-decls"],
206
206
[CXX_WARNINGS="${CXX_WARNINGS} -Wno-redundant-decls"])
208
AC_CACHE_CHECK([whether it is safe to use -Wattributes from C++],
209
[ac_cv_safe_to_use_Wattributes_],
211
save_CXXFLAGS="${CXXFLAGS}"
212
CXXFLAGS="${W_FAIL} -pedantic -Wattributes -fvisibility=hidden ${AM_CXXFLAGS}"
215
#include <google/protobuf/message.h>
216
#include <google/protobuf/descriptor.h>
219
const ::google::protobuf::EnumDescriptor* Table_TableOptions_RowType_descriptor();
220
enum Table_TableOptions_RowType {
221
Table_TableOptions_RowType_ROW_TYPE_DEFAULT = 0,
222
Table_TableOptions_RowType_ROW_TYPE_FIXED = 1,
223
Table_TableOptions_RowType_ROW_TYPE_DYNAMIC = 2,
224
Table_TableOptions_RowType_ROW_TYPE_COMPRESSED = 3,
225
Table_TableOptions_RowType_ROW_TYPE_REDUNDANT = 4,
226
Table_TableOptions_RowType_ROW_TYPE_COMPACT = 5,
227
Table_TableOptions_RowType_ROW_TYPE_PAGE = 6
233
inline const EnumDescriptor* GetEnumDescriptor<Table_TableOptions_RowType>() {
234
return Table_TableOptions_RowType_descriptor();
239
[ac_cv_safe_to_use_Wattributes_=yes],
240
[ac_cv_safe_to_use_Wattributes_=no])
241
CXXFLAGS="${save_CXXFLAGS}"
243
AS_IF([test "$ac_cv_safe_to_use_Wattributes_" = "yes"],
245
[CXX_WARNINGS="${CXX_WARNINGS} -Wno-attributes"])
208
247
NO_REDUNDANT_DECLS="-Wno-redundant-decls"
209
248
dnl TODO: Figure out a better way to deal with this:
210
PROTOSKIP_WARNINGS="-Wno-effc++ -Wno-shadow -Wno-missing-braces"
249
PROTOSKIP_WARNINGS="-Wno-effc++ -Wno-shadow -Wno-missing-braces -Wno-attributes"
211
250
NO_WERROR="-Wno-error"
212
251
INNOBASE_SKIP_WARNINGS="-Wno-shadow -Wno-cast-align"