patch for "variable not used" warnings in gcc >= 4.6

See https://svn.boost.org/trac/boost/ticket/6136