1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024284: Some trivial warnings produced by ICC 14

Eliminated ICC 14 warnings:
# 82: storage class is not first (e.g. "int static f()"
# 2621: attribute "dllexport" does not apply here (e.g. "Standard_EXPORT typedef int qqint;")
# 2415: variable "..." of static storage duration was declared but never referenced
# 111: statement is unreachable (usually "break" after "return" in cycles)
This commit is contained in:
abv
2013-10-24 09:22:29 +04:00
committed by bugmaster
parent 9447f91258
commit f24125b9e5
35 changed files with 30 additions and 111 deletions

View File

@@ -34,7 +34,7 @@ const int ENTI_AMP = 1;
const int ENTI_LT = 2;
const int ENTI_GT = 3;
const int ENTI_QUOT = 4;
const int ENTI_APOS = 5;
//const int ENTI_APOS = 5;
struct entityRef {
const char * name;

View File

@@ -38,7 +38,6 @@
//#include <ctype.h>
const int XML_MIN_BUFFER = 10;
const int MAX_ATTRIBUTES = 512;
const int FILE_NONVALUE = -1;
typedef enum {

View File

@@ -101,8 +101,8 @@
static const LXMLCh gEndElement[] = { chOpenAngle, chForwardSlash, chNull };
static const LXMLCh gEndElement1[]= { chForwardSlash, chNull };
static const LXMLCh gEndPI[] = { chQuestion, chCloseAngle, chNull };
static const LXMLCh gStartPI[] = { chOpenAngle, chQuestion, chNull };
//static const LXMLCh gEndPI[] = { chQuestion, chCloseAngle, chNull };
//static const LXMLCh gStartPI[] = { chOpenAngle, chQuestion, chNull };
static const LXMLCh gXMLDecl1[] =
{ chOpenAngle, chQuestion, chLatin_x, chLatin_m, chLatin_l
, chSpace, chLatin_v, chLatin_e, chLatin_r, chLatin_s, chLatin_i
@@ -113,11 +113,13 @@ static const LXMLCh gXMLDecl2[] =
, chLatin_o, chLatin_d, chLatin_i, chLatin_n, chLatin_g, chEqual
, chDoubleQuote, chNull
};
/*
static const LXMLCh gXMLDecl3[] =
{ chDoubleQuote, chSpace, chLatin_s, chLatin_t, chLatin_a
, chLatin_n, chLatin_d, chLatin_a, chLatin_l, chLatin_o
, chLatin_n, chLatin_e, chEqual, chDoubleQuote, chNull
};
*/
static const LXMLCh gXMLDecl4[] =
{ chDoubleQuote, chQuestion, chCloseAngle
, chLF, chNull
@@ -132,6 +134,7 @@ static const LXMLCh gStartComment[] =
{ chOpenAngle, chBang, chDash, chDash, chNull };
static const LXMLCh gEndComment[] =
{ chDash, chDash, chCloseAngle, chNull };
/*
static const LXMLCh gStartDoctype[] =
{ chOpenAngle, chBang, chLatin_D, chLatin_O, chLatin_C, chLatin_T,
chLatin_Y, chLatin_P, chLatin_E, chSpace, chNull
@@ -152,6 +155,7 @@ static const LXMLCh gNotation[] =
{ chLatin_N, chLatin_D, chLatin_A, chLatin_T, chLatin_A,
chSpace, chDoubleQuote, chNull
};
*/
static LXMLCh * getEncodingName (const LXMLCh * theEncodingName)
{