diff options
author | tradke <schnetter@cct.lsu.edu> | 2007-05-02 14:23:00 +0000 |
---|---|---|
committer | tradke <schnetter@cct.lsu.edu> | 2007-05-02 14:23:00 +0000 |
commit | 653cc3ae18ef861f4abe354b150f8636b8193e65 (patch) | |
tree | e9327fe47e40b7891bd16d43edc69b1f1d58ed31 /Carpet/CarpetLib | |
parent | e85f43127ae3c73829558b9a0dd73a176b374cb1 (diff) |
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
Diffstat (limited to 'Carpet/CarpetLib')
-rw-r--r-- | Carpet/CarpetLib/src/data.cc | 58 |
1 files changed, 29 insertions, 29 deletions
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 <typename T> 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 <typename T> 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 <CCTK_INT>:: -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 <CCTK_INT>:: -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 <T>:: 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 <CCTK_INT>:: -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 <data *> const & srcs, template <> void data <CCTK_INT>:: -time_interpolate (vector <data *> const & srcs, - ibbox const & box, - vector <CCTK_REAL> const & times, - CCTK_REAL const time, - int const order_time) +time_interpolate (vector <data *> const & /*srcs*/, + ibbox const & /*box*/, + vector <CCTK_REAL> const & /*times*/, + CCTK_REAL const /*time*/, + int const /*order_time*/) { CCTK_WARN (0, "Data type not supported"); } |