Module: Mesa
Branch: main
Commit: 6fb29e1de009322835fd65f6f98f02810b67ec39
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6fb29e1de009322835fd65f6f98f02810b67ec39

Author: Jesse Natalie <[email protected]>
Date:   Sun Aug  8 08:59:58 2021 -0700

clover: Delete unused 'e' exception reference vars

Reviewed-by: Karol Herbst <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12273>

---

 src/gallium/frontends/clover/api/event.cpp    |  4 ++--
 src/gallium/frontends/clover/api/kernel.cpp   | 10 +++++-----
 src/gallium/frontends/clover/api/memory.cpp   |  4 ++--
 src/gallium/frontends/clover/api/platform.cpp |  2 +-
 src/gallium/frontends/clover/api/program.cpp  | 10 +++++-----
 5 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/gallium/frontends/clover/api/event.cpp 
b/src/gallium/frontends/clover/api/event.cpp
index e1fd9356aa6..7c3b0812f24 100644
--- a/src/gallium/frontends/clover/api/event.cpp
+++ b/src/gallium/frontends/clover/api/event.cpp
@@ -282,10 +282,10 @@ clGetEventProfilingInfo(cl_event d_ev, cl_profiling_info 
param,
 
    return CL_SUCCESS;
 
-} catch (std::bad_cast &e) {
+} catch (std::bad_cast &) {
    return CL_PROFILING_INFO_NOT_AVAILABLE;
 
-} catch (lazy<cl_ulong>::undefined_error &e) {
+} catch (lazy<cl_ulong>::undefined_error &) {
    return CL_PROFILING_INFO_NOT_AVAILABLE;
 
 } catch (error &e) {
diff --git a/src/gallium/frontends/clover/api/kernel.cpp 
b/src/gallium/frontends/clover/api/kernel.cpp
index c937642fccf..ebc266e25b6 100644
--- a/src/gallium/frontends/clover/api/kernel.cpp
+++ b/src/gallium/frontends/clover/api/kernel.cpp
@@ -38,7 +38,7 @@ clCreateKernel(cl_program d_prog, const char *name, cl_int 
*r_errcode) try {
    ret_error(r_errcode, CL_SUCCESS);
    return new kernel(prog, name, range(sym.args));
 
-} catch (std::out_of_range &e) {
+} catch (std::out_of_range &) {
    ret_error(r_errcode, CL_INVALID_KERNEL_NAME);
    return NULL;
 
@@ -100,7 +100,7 @@ clSetKernelArg(cl_kernel d_kern, cl_uint idx, size_t size,
    obj(d_kern).args().at(idx).set(size, value);
    return CL_SUCCESS;
 
-} catch (std::out_of_range &e) {
+} catch (std::out_of_range &) {
    return CL_INVALID_ARG_INDEX;
 
 } catch (error &e) {
@@ -189,7 +189,7 @@ clGetKernelWorkGroupInfo(cl_kernel d_kern, cl_device_id 
d_dev,
 } catch (error &e) {
    return e.get();
 
-} catch (std::out_of_range &e) {
+} catch (std::out_of_range &) {
    return CL_INVALID_DEVICE;
 }
 
@@ -231,7 +231,7 @@ clGetKernelArgInfo(cl_kernel d_kern,
 
    return CL_SUCCESS;
 
-} catch (std::out_of_range &e) {
+} catch (std::out_of_range &) {
    return CL_INVALID_ARG_INDEX;
 
 } catch (error &e) {
@@ -381,7 +381,7 @@ clSetKernelArgSVMPointer(cl_kernel d_kern,
    obj(d_kern).args().at(arg_index).set_svm(arg_value);
    return CL_SUCCESS;
 
-} catch (std::out_of_range &e) {
+} catch (std::out_of_range &) {
    return CL_INVALID_ARG_INDEX;
 
 } catch (error &e) {
diff --git a/src/gallium/frontends/clover/api/memory.cpp 
b/src/gallium/frontends/clover/api/memory.cpp
index d3039d47ba1..2450f3f48ae 100644
--- a/src/gallium/frontends/clover/api/memory.cpp
+++ b/src/gallium/frontends/clover/api/memory.cpp
@@ -551,7 +551,7 @@ clSVMAlloc(cl_context d_ctx,
    CLOVER_NOT_SUPPORTED_UNTIL("2.0");
    return nullptr;
 
-} catch (error &e) {
+} catch (error &) {
    return nullptr;
 }
 
@@ -572,5 +572,5 @@ clSVMFree(cl_context d_ctx,
 
    CLOVER_NOT_SUPPORTED_UNTIL("2.0");
 
-} catch (error &e) {
+} catch (error &) {
 }
diff --git a/src/gallium/frontends/clover/api/platform.cpp 
b/src/gallium/frontends/clover/api/platform.cpp
index 9b38c3c4871..b2077d30360 100644
--- a/src/gallium/frontends/clover/api/platform.cpp
+++ b/src/gallium/frontends/clover/api/platform.cpp
@@ -118,7 +118,7 @@ 
clover::GetExtensionFunctionAddressForPlatform(cl_platform_id d_platform,
    obj(d_platform);
    return GetExtensionFunctionAddress(p_name);
 
-} catch (error &e) {
+} catch (error &) {
    return NULL;
 }
 
diff --git a/src/gallium/frontends/clover/api/program.cpp 
b/src/gallium/frontends/clover/api/program.cpp
index f5971248f43..1fe624ccec5 100644
--- a/src/gallium/frontends/clover/api/program.cpp
+++ b/src/gallium/frontends/clover/api/program.cpp
@@ -154,7 +154,7 @@ clCreateProgramWithBinary(cl_context d_ctx, cl_uint n,
 
             return { CL_SUCCESS, module::deserialize(s) };
 
-         } catch (std::istream::failure &e) {
+         } catch (std::istream::failure &) {
             return { CL_INVALID_BINARY, {} };
          }
       },
@@ -333,10 +333,10 @@ clCompileProgram(cl_program d_prog, cl_uint num_devs,
    prog.compile(devs, opts, headers);
    return CL_SUCCESS;
 
-} catch (invalid_build_options_error &e) {
+} catch (invalid_build_options_error &) {
    return CL_INVALID_COMPILER_OPTIONS;
 
-} catch (build_error &e) {
+} catch (build_error &) {
    return CL_COMPILE_PROGRAM_FAILURE;
 
 } catch (error &e) {
@@ -446,13 +446,13 @@ clLinkProgram(cl_context d_ctx, cl_uint num_devs, const 
cl_device_id *d_devs,
       prog().link(devs, opts, progs);
       ret_error(r_errcode, CL_SUCCESS);
 
-   } catch (build_error &e) {
+   } catch (build_error &) {
       ret_error(r_errcode, CL_LINK_PROGRAM_FAILURE);
    }
 
    return r_prog;
 
-} catch (invalid_build_options_error &e) {
+} catch (invalid_build_options_error &) {
    ret_error(r_errcode, CL_INVALID_LINKER_OPTIONS);
    return NULL;
 

Reply via email to