summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-11-26 21:39:00 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-12-02 11:19:44 -0800
commit953e12eab18c50001fcabeac9f3a9008a2858bc1 (patch)
treec227e1616ecb3c724a51729056ce16e1608345db
parentc715abbca4885d03e8f9d6b71cf8fb54e5be5667 (diff)
Remove break statements immediately after return statements
Silences clang -Wunreachable-code warnings Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--loadData.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/loadData.c b/loadData.c
index 170d9e0..defcb40 100644
--- a/loadData.c
+++ b/loadData.c
@@ -485,7 +485,6 @@ ProcessColorimetric(FILE *stream, XDCCC_Matrix *pMatrix, int VisualFlag)
"Line %d: Extraneous keyword %s.\n",
linenum, keyword);
return (0);
-/* NOTREACHED */break;
case COLORIMETRIC_END :
if (state != 2) {
fprintf(stderr,
@@ -502,13 +501,11 @@ ProcessColorimetric(FILE *stream, XDCCC_Matrix *pMatrix, int VisualFlag)
"Line %d: Unexpected keyword %s\n",
linenum, keyword);
return (0);
-/* NOTREACHED */break;
}
} else if (ntok < 0) {
/* mismatch */
fprintf(stderr, "Line %d: Unrecognized keyword\n", linenum);
return (0);
-/* NOTREACHED */break;
}
}
return (0);
@@ -692,7 +689,6 @@ ProcessIProfile(FILE *stream, XDCCC_Correction *pCorrection)
fprintf(stderr,"Line %d: extraneous keyword %s\n",
linenum, keyword);
return (0);
-/* NOTREACHED */break;
case IPROFILE_END :
if ((state != 0) || (nTbl != pCorrection->nTables)) {
fprintf(stderr,
@@ -708,7 +704,6 @@ ProcessIProfile(FILE *stream, XDCCC_Correction *pCorrection)
fprintf(stderr,"Line %d: unexpected keyword %s\n",
linenum, keyword);
return (0);
-/* NOTREACHED */break;
}
} /* else its was just a blank line */
}
@@ -1721,7 +1716,7 @@ IProfileProcessed:
}
closeS (stream, CorrectionHead);
return (1);
-/* NOTREACHED */ break;
+
default :
fprintf(stderr,"Line %d: extraneous keyword %s\n",
linenum, keyword);