From 653cc3ae18ef861f4abe354b150f8636b8193e65 Mon Sep 17 00:00:00 2001 From: tradke Date: Wed, 2 May 2007 14:23:00 +0000 Subject: CarpetLib: prevent GNU C++ compiler warnings g++ complains about function parameters which aren't used. Such warnings can be prevented simply by not naming the parameters. darcs-hash:20070502142321-3fd61-2df310c771be0a6177c7f56d6603e6f571209dea.gz --- Carpet/CarpetLib/src/data.cc | 58 ++++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'Carpet/CarpetLib') diff --git a/Carpet/CarpetLib/src/data.cc b/Carpet/CarpetLib/src/data.cc index 62f724a17..45b8a71e8 100644 --- a/Carpet/CarpetLib/src/data.cc +++ b/Carpet/CarpetLib/src/data.cc @@ -33,13 +33,13 @@ using namespace CarpetLib; template void -prolongate_3d_eno (T const * restrict const src, - ivect3 const & srcext, - T * restrict const dst, - ivect3 const & dstext, - ibbox3 const & srcbbox, - ibbox3 const & dstbbox, - ibbox3 const & regbbox) +prolongate_3d_eno (T const * restrict const /*src*/, + ivect3 const & /*srcext*/, + T * restrict const /*dst*/, + ivect3 const & /*dstext*/, + ibbox3 const & /*srcbbox*/, + ibbox3 const & /*dstbbox*/, + ibbox3 const & /*regbbox*/) { CCTK_WARN (0, "Data type not supported"); } @@ -81,13 +81,13 @@ prolongate_3d_eno (CCTK_REAL8 const * restrict const src, template void -prolongate_3d_weno (T const * restrict const src, - ivect3 const & srcext, - T * restrict const dst, - ivect3 const & dstext, - ibbox3 const & srcbbox, - ibbox3 const & dstbbox, - ibbox3 const & regbbox) +prolongate_3d_weno (T const * restrict const /*src*/, + ivect3 const & /*srcext*/, + T * restrict const /*dst*/, + ivect3 const & /*dstext*/, + ibbox3 const & /*srcbbox*/, + ibbox3 const & /*dstbbox*/, + ibbox3 const & /*regbbox*/) { CCTK_WARN (0, "Data type not supported"); } @@ -460,9 +460,9 @@ transfer_p_vc_cc (data const * const src, template <> void data :: -transfer_p_vc_cc (data const * const src, - ibbox const & box, - int const order_space) +transfer_p_vc_cc (data const * const /*src*/, + ibbox const & /*box*/, + int const /*order_space*/) { CCTK_WARN (0, "Data type not supported"); } @@ -579,9 +579,9 @@ transfer_prolongate (data const * const src, template <> void data :: -transfer_prolongate (data const * const src, - ibbox const & box, - int const order_space) +transfer_prolongate (data const * const /*src*/, + ibbox const & /*box*/, + int const /*order_space*/) { CCTK_WARN (0, "Data type not supported"); } @@ -593,7 +593,7 @@ void data :: transfer_restrict (data const * const src, ibbox const & box, - int const order_space) + int const /*order_space*/) { static Timer total ("restrict"); total.start (); @@ -639,9 +639,9 @@ transfer_restrict (data const * const src, template <> void data :: -transfer_restrict (data const * const src, - ibbox const & box, - int const order_space) +transfer_restrict (data const * const /*src*/, + ibbox const & /*box*/, + int const /*order_space*/) { CCTK_WARN (0, "Data type not supported"); } @@ -763,11 +763,11 @@ time_interpolate (vector const & srcs, template <> void data :: -time_interpolate (vector const & srcs, - ibbox const & box, - vector const & times, - CCTK_REAL const time, - int const order_time) +time_interpolate (vector const & /*srcs*/, + ibbox const & /*box*/, + vector const & /*times*/, + CCTK_REAL const /*time*/, + int const /*order_time*/) { CCTK_WARN (0, "Data type not supported"); } -- cgit v1.2.3