[PATCH] fdo#42781 WaE: unreachable code

Petr Kraus (via Code Review) gerrit at gerrit.libreoffice.org
Tue Mar 26 12:22:47 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3065

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/65/3065/1

fdo#42781 WaE: unreachable code

Encapsulate whole switch case code by #if
so it does not produce unreachable code when TRUE

Change-Id: Id6c843019d27ea621a4a2d0bdff88f5bbdc11ae7
---
M sc/source/core/tool/interpr4.cxx
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx
index bfd9494..9018c33 100644
--- a/sc/source/core/tool/interpr4.cxx
+++ b/sc/source/core/tool/interpr4.cxx
@@ -543,10 +543,10 @@
         break;
 #if OSL_DEBUG_LEVEL > 0
         case CELLTYPE_DESTROYED:
-#endif
             SetError(errCellNoValue);
             fValue = 0.0;
         break;
+#endif
     }
 
     return fValue;

-- 
To view, visit https://gerrit.libreoffice.org/3065
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id6c843019d27ea621a4a2d0bdff88f5bbdc11ae7
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Petr Kraus <petr_kraus at email.cz>



More information about the LibreOffice mailing list