From 60205425db24aec0d0d2b8c5b65c064fe35925f3 Mon Sep 17 00:00:00 2001 From: Daviw Williams Date: Fri, 24 May 2013 16:18:02 +0200 Subject: [PATCH] Fixed warning about unreachable code. --- library/PolyVoxCore/include/PolyVoxCore/BaseVolumeSampler.inl | 1 - library/PolyVoxCore/include/PolyVoxCore/LargeVolume.inl | 1 - library/PolyVoxCore/include/PolyVoxCore/RawVolume.inl | 1 - library/PolyVoxCore/include/PolyVoxCore/SimpleVolume.inl | 1 - 4 files changed, 4 deletions(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/BaseVolumeSampler.inl b/library/PolyVoxCore/include/PolyVoxCore/BaseVolumeSampler.inl index e8300ccf..1e67a020 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/BaseVolumeSampler.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/BaseVolumeSampler.inl @@ -376,7 +376,6 @@ namespace PolyVox { //Should never happen POLYVOX_THROW(std::invalid_argument, "Wrap mode parameter has an unrecognised value."); - return VoxelType(); } } } diff --git a/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.inl b/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.inl index 76d4049a..a00c744f 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.inl @@ -230,7 +230,6 @@ namespace PolyVox { //Should never happen POLYVOX_THROW(std::invalid_argument, "Wrap mode parameter has an unrecognised value."); - return VoxelType(); } } } diff --git a/library/PolyVoxCore/include/PolyVoxCore/RawVolume.inl b/library/PolyVoxCore/include/PolyVoxCore/RawVolume.inl index c6face08..dc6732e0 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/RawVolume.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/RawVolume.inl @@ -188,7 +188,6 @@ namespace PolyVox { //Should never happen POLYVOX_THROW(std::invalid_argument, "Wrap mode parameter has an unrecognised value."); - return VoxelType(); } } } diff --git a/library/PolyVoxCore/include/PolyVoxCore/SimpleVolume.inl b/library/PolyVoxCore/include/PolyVoxCore/SimpleVolume.inl index 573f3c83..decbcfce 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/SimpleVolume.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/SimpleVolume.inl @@ -188,7 +188,6 @@ namespace PolyVox { //Should never happen POLYVOX_THROW(std::invalid_argument, "Wrap mode parameter has an unrecognised value."); - return VoxelType(); } } }