From f8da754884e5c7d4a8fe16829c771fb66b32c38b Mon Sep 17 00:00:00 2001
From: ridiculousfish <corydoras@ridiculousfish.com>
Date: Tue, 2 Feb 2016 15:39:35 -0800
Subject: [PATCH] Work around some bogus static analyzer warnings

---
 src/exec.cpp | 4 ++--
 src/io.cpp   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/exec.cpp b/src/exec.cpp
index fa58c3107..c9e9833e2 100644
--- a/src/exec.cpp
+++ b/src/exec.cpp
@@ -149,8 +149,8 @@ static bool chain_contains_redirection_to_real_file(const io_chain_t &io_chain)
     bool result = false;
     for (size_t idx=0; idx < io_chain.size(); idx++)
     {
-        const shared_ptr<const io_data_t> &io = io_chain.at(idx);
-        if (redirection_is_to_real_file(io.get()))
+        const io_data_t *io = io_chain.at(idx).get();
+        if (redirection_is_to_real_file(io))
         {
             result = true;
             break;
diff --git a/src/io.cpp b/src/io.cpp
index a013b9ef9..da326f559 100644
--- a/src/io.cpp
+++ b/src/io.cpp
@@ -194,7 +194,7 @@ void io_print(const io_chain_t &chain)
     fprintf(stderr, "Chain %p (%ld items):\n", &chain, (long)chain.size());
     for (size_t i=0; i < chain.size(); i++)
     {
-        const shared_ptr<const io_data_t> &io = chain.at(i);
+        const shared_ptr<io_data_t> &io = chain.at(i);
         if (io.get() == NULL)
         {
             fprintf(stderr, "\t(null)\n");
@@ -278,7 +278,7 @@ shared_ptr<const io_data_t> io_chain_t::get_io_for_fd(int fd) const
     size_t idx = this->size();
     while (idx--)
     {
-        const shared_ptr<const io_data_t> &data = this->at(idx);
+        const shared_ptr<io_data_t> &data = this->at(idx);
         if (data->fd == fd)
         {
             return data;