summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsJavaParser.y
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-28 22:24:45 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-28 22:24:45 (GMT)
commit300416fa24438988ef7901b4fbba64964a328080 (patch)
tree1e4fb056ef408c581efa080336dc989ebfe86944 /Source/cmDependsJavaParser.y
parent2ca86b868ca71e0dec922a02702f6d859385c817 (diff)
downloadCMake-300416fa24438988ef7901b4fbba64964a328080.zip
CMake-300416fa24438988ef7901b4fbba64964a328080.tar.gz
CMake-300416fa24438988ef7901b4fbba64964a328080.tar.bz2
COMP: Remove warnings
Diffstat (limited to 'Source/cmDependsJavaParser.y')
-rw-r--r--Source/cmDependsJavaParser.y33
1 files changed, 17 insertions, 16 deletions
diff --git a/Source/cmDependsJavaParser.y b/Source/cmDependsJavaParser.y
index 3b6c73b..9206ebc 100644
--- a/Source/cmDependsJavaParser.y
+++ b/Source/cmDependsJavaParser.y
@@ -60,6 +60,7 @@ static void cmDependsJavaError(yyscan_t yyscanner, const char* message);
#endif
#ifdef _MSC_VER
# pragma warning (disable: 4102) /* Unused goto label. */
+# pragma warning (disable: 4065) /* Switch statement contains default but no case. */
#endif
%}
@@ -76,30 +77,30 @@ static void cmDependsJavaError(yyscan_t yyscanner, const char* message);
/* Tokens */
%token ABSTRACT
%token ASSERT
-%token BOOLEAN
+%token BOOLEAN_TYPE
%token BREAK
-%token BYTE
+%token BYTE_TYPE
%token CASE
%token CATCH
-%token CHAR
+%token CHAR_TYPE
%token CLASS
%token CONTINUE
%token DEFAULT
%token DO
-%token DOUBLE
+%token DOUBLE_TYPE
%token ELSE
%token EXTENDS
%token FINAL
%token FINALLY
-%token FLOAT
+%token FLOAT_TYPE
%token FOR
%token IF
%token IMPLEMENTS
%token IMPORT
%token INSTANCEOF
-%token INT
+%token INT_TYPE
%token INTERFACE
-%token LONG
+%token LONG_TYPE
%token NATIVE
%token NEW
%token PACKAGE
@@ -107,7 +108,7 @@ static void cmDependsJavaError(yyscan_t yyscanner, const char* message);
%token PROTECTED
%token PUBLIC
%token RETURN
-%token SHORT
+%token SHORT_TYPE
%token STATIC
%token STRICTFP
%token SUPER
@@ -279,42 +280,42 @@ ReferenceType
}
PrimitiveType:
-BYTE
+BYTE_TYPE
{
ELEMENTSTART(0);
}
|
-SHORT
+SHORT_TYPE
{
ELEMENTSTART(0);
}
|
-INT
+INT_TYPE
{
ELEMENTSTART(0);
}
|
-LONG
+LONG_TYPE
{
ELEMENTSTART(0);
}
|
-CHAR
+CHAR_TYPE
{
ELEMENTSTART(0);
}
|
-FLOAT
+FLOAT_TYPE
{
ELEMENTSTART(0);
}
|
-DOUBLE
+DOUBLE_TYPE
{
ELEMENTSTART(0);
}
|
-BOOLEAN
+BOOLEAN_TYPE
{
ELEMENTSTART(0);
}