added -Wno-unused-parameter to AM_CXXFLAGS.