123
123
# For example, -Wno-div-by-zero isn't in 4.1.2
124
124
_MY_CXX_CHECK_OPT(-Wno-char-subscripts)
125
126
# Random code often does / 0. Unfortunately VL_DIV_I(0,0) will warn
126
127
# without this flag, even though there's a conditional to prevent the divide.
127
128
# We still don't add no-div-by-zero as it throws message to stdout, though doesn't die.
128
129
#_MY_CXX_CHECK_OPT(-Wno-div-by-zero)
129
130
_MY_CXX_CHECK_OPT(-Wno-sign-compare)
130
131
_MY_CXX_CHECK_OPT(-Wno-uninitialized)
131
133
_MY_CXX_CHECK_OPT(-Wno-unused-parameter)
132
134
_MY_CXX_CHECK_OPT(-Wno-unused-variable)
134
136
AC_SUBST(CFG_CXXFLAGS_NO_UNUSED)
136
138
# Checks for library functions.