From 418a7ab57fcf7438180f25bb1f50cedd9780b392 Mon Sep 17 00:00:00 2001 From: Valentina Zhuravska Date: Wed, 30 Sep 2015 21:00:58 +0300 Subject: [PATCH] Fixed warnings in Linux (default statement in switch case) --HG-- branch : feature --- src/libs/vdxf/dxflib/dl_dxf.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/libs/vdxf/dxflib/dl_dxf.cpp b/src/libs/vdxf/dxflib/dl_dxf.cpp index 8a21cad61..f8ec8a9ae 100644 --- a/src/libs/vdxf/dxflib/dl_dxf.cpp +++ b/src/libs/vdxf/dxflib/dl_dxf.cpp @@ -2277,6 +2277,8 @@ bool DL_Dxf::handleHatchData(DL_CreationInterface* creationInterface) hatchEdge.defined = true; } return true; + default: + return true; } } else @@ -2299,6 +2301,8 @@ bool DL_Dxf::handleHatchData(DL_CreationInterface* creationInterface) hatchEdge.y2 = toReal(groupValue); hatchEdge.defined = true; return true; + default: + return true; } } @@ -2326,6 +2330,8 @@ bool DL_Dxf::handleHatchData(DL_CreationInterface* creationInterface) hatchEdge.ccw = static_cast(toInt(groupValue)); hatchEdge.defined = true; return true; + default: + return true; } } @@ -2359,6 +2365,8 @@ bool DL_Dxf::handleHatchData(DL_CreationInterface* creationInterface) hatchEdge.ccw = static_cast(toInt(groupValue)); hatchEdge.defined = true; return true; + default: + return true; } } @@ -2439,6 +2447,8 @@ bool DL_Dxf::handleHatchData(DL_CreationInterface* creationInterface) case 23: hatchEdge.endTangentY = toReal(groupValue); return true; + default: + return true; } } } @@ -2602,6 +2612,8 @@ void DL_Dxf::writeHeader(DL_WriterA& dw) case DL_Codes::AC1015: dw.dxfString(1, "AC1015"); break; + default: + break; } // Newer version require that (otherwise a*cad crashes..)