File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ namespace camp
2727{
2828
2929#if defined(__NVCC__)
30- #define CAMP_ALLOW_UNUSED_LOCAL (X ) sink(X)
30+ #define CAMP_ALLOW_UNUSED_LOCAL (X ) camp:: sink(X)
3131#else
3232#define CAMP_ALLOW_UNUSED_LOCAL (X ) (void )(X)
3333#endif
Original file line number Diff line number Diff line change @@ -252,6 +252,7 @@ TEST(CampEventProxy, Get)
252252 {
253253 EventProxy<Host> ep{h1};
254254 HostEvent e = ep;
255+ CAMP_ALLOW_UNUSED_LOCAL (e);
255256 }
256257
257258 {
@@ -264,6 +265,7 @@ TEST(CampEventProxy, Get)
264265
265266 {
266267 HostEvent e = do_stuff (h1);
268+ CAMP_ALLOW_UNUSED_LOCAL (e);
267269 }
268270
269271 {
@@ -283,6 +285,7 @@ TEST(CampEventProxy, Get)
283285 {
284286 EventProxy<Host> ep{h1};
285287 HostEvent e = ep.get ();
288+ CAMP_ALLOW_UNUSED_LOCAL (e);
286289 }
287290}
288291
You can’t perform that action at this time.
0 commit comments