From a8dc82e7f534f790550d47505adb69a33d40b163 Mon Sep 17 00:00:00 2001 From: Rich Hornung Date: Tue, 13 Aug 2024 09:39:45 -0700 Subject: [PATCH] Fix compilation issue on Mac and unused variable warning. --- Intermediate_Tutorial/00-BASE/fractal-ex0-c-loop.cpp | 1 - Intermediate_Tutorial/01-SEQ/fractal-ex1-RAJA-seq.cpp | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Intermediate_Tutorial/00-BASE/fractal-ex0-c-loop.cpp b/Intermediate_Tutorial/00-BASE/fractal-ex0-c-loop.cpp index 01b51ad..d33c16a 100644 --- a/Intermediate_Tutorial/00-BASE/fractal-ex0-c-loop.cpp +++ b/Intermediate_Tutorial/00-BASE/fractal-ex0-c-loop.cpp @@ -1,4 +1,3 @@ -#include #include #include #include diff --git a/Intermediate_Tutorial/01-SEQ/fractal-ex1-RAJA-seq.cpp b/Intermediate_Tutorial/01-SEQ/fractal-ex1-RAJA-seq.cpp index 1a2a363..f4ea82a 100644 --- a/Intermediate_Tutorial/01-SEQ/fractal-ex1-RAJA-seq.cpp +++ b/Intermediate_Tutorial/01-SEQ/fractal-ex1-RAJA-seq.cpp @@ -16,7 +16,10 @@ int main(int argc, char *argv[]) { -#if defined(COMPILE) +#if !defined(COMPILE) +RAJA_UNUSED_VAR(argc); +RAJA_UNUSED_VAR(argv); +#else double dx, dy; int width;