Commit a9314ac0 authored by David Gobbi's avatar David Gobbi
Browse files

Fix compile warnings for vtkParse.tab.c.

Change-Id: Ie0970c607847cdde76eba2ca95eb8888632751d9
parent 4d391929
......@@ -59,13 +59,15 @@ This file must be translated to C and modified to build everywhere.
Run bison like this:
bison -b vtkParse vtkParse.y
bison --no-lines -b vtkParse vtkParse.y
Modify vtkParse.tab.c:
- convert TABs to spaces (eight per tab)
- remove spaces from ends of lines, s/ *$//g
- replace all instances of "static inline" with "static".
- replace "#line" lines with blank lines
- replace "#if ! defined lint || defined __GNUC__" with "#if 1"
- remove YY_ATTRIBUTE_UNUSED from yyfillin, yyfill, and yynormal
- remove the "break;" after return "return yyreportAmbiguity"
*/
/*
......@@ -1587,7 +1589,7 @@ static YYSTYPE yyval_default;
#endif
/* Suppress unused-variable warnings by "using" E. */
#if ! defined lint || defined __GNUC__
#if 1
# define YYUSE(E) ((void) (E))
#else
# define YYUSE(E) /* empty */
......@@ -1691,77 +1693,77 @@ static const unsigned char yytranslate[] =
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const unsigned short int yyrline[] =
{
0, 1473, 1473, 1475, 1477, 1476, 1487, 1488, 1489, 1490,
1491, 1492, 1493, 1494, 1495, 1496, 1497, 1498, 1499, 1500,
1501, 1502, 1503, 1504, 1507, 1508, 1509, 1510, 1511, 1514,
1515, 1522, 1529, 1530, 1530, 1534, 1541, 1542, 1545, 1546,
1547, 1550, 1551, 1554, 1554, 1569, 1568, 1574, 1580, 1579,
1584, 1590, 1591, 1592, 1595, 1597, 1599, 1602, 1603, 1606,
1607, 1609, 1611, 1610, 1619, 1623, 1624, 1625, 1628, 1629,
1630, 1631, 1632, 1633, 1634, 1635, 1636, 1637, 1638, 1639,
1640, 1641, 1642, 1643, 1646, 1647, 1648, 1649, 1652, 1653,
1654, 1655, 1658, 1659, 1662, 1664, 1667, 1672, 1673, 1676,
1677, 1680, 1681, 1682, 1693, 1694, 1695, 1699, 1700, 1704,
1704, 1717, 1723, 1731, 1732, 1733, 1736, 1737, 1737, 1741,
1742, 1744, 1745, 1746, 1746, 1754, 1758, 1759, 1762, 1764,
1766, 1767, 1770, 1771, 1779, 1780, 1783, 1784, 1786, 1788,
1790, 1794, 1796, 1797, 1800, 1803, 1804, 1807, 1808, 1807,
1812, 1846, 1849, 1850, 1851, 1853, 1855, 1857, 1861, 1864,
1864, 1895, 1898, 1897, 1915, 1917, 1916, 1921, 1923, 1921,
1925, 1927, 1925, 1929, 1930, 1932, 1929, 1943, 1944, 1947,
1948, 1950, 1951, 1954, 1954, 1964, 1965, 1973, 1974, 1975,
1976, 1979, 1982, 1983, 1984, 1987, 1988, 1989, 1992, 1993,
1994, 1998, 1999, 2000, 2001, 2004, 2005, 2006, 2010, 2015,
2009, 2027, 2031, 2031, 2043, 2042, 2051, 2055, 2058, 2067,
2068, 2071, 2071, 2072, 2073, 2079, 2084, 2085, 2086, 2089,
2092, 2093, 2095, 2096, 2099, 2099, 2107, 2108, 2109, 2112,
2114, 2115, 2119, 2118, 2131, 2132, 2131, 2151, 2151, 2155,
2156, 2159, 2160, 2163, 2169, 2170, 2170, 2173, 2174, 2174,
2176, 2178, 2182, 2184, 2182, 2208, 2209, 2212, 2212, 2214,
2214, 2222, 2225, 2284, 2285, 2287, 2288, 2288, 2291, 2294,
2295, 2299, 2310, 2310, 2329, 2331, 2331, 2349, 2349, 2351,
2355, 2356, 2357, 2356, 2362, 2364, 2365, 2366, 2367, 2368,
2369, 2372, 2373, 2377, 2378, 2382, 2383, 2386, 2387, 2391,
2392, 2393, 2396, 2397, 2400, 2400, 2403, 2404, 2407, 2407,
2411, 2412, 2412, 2419, 2420, 2423, 2424, 2425, 2426, 2427,
2430, 2432, 2434, 2438, 2440, 2442, 2444, 2446, 2448, 2450,
2450, 2455, 2458, 2461, 2464, 2464, 2472, 2472, 2481, 2482,
2483, 2484, 2485, 2486, 2487, 2488, 2489, 2490, 2491, 2492,
2493, 2494, 2495, 2496, 2497, 2498, 2499, 2500, 2501, 2508,
2509, 2510, 2511, 2512, 2513, 2514, 2520, 2521, 2524, 2525,
2527, 2528, 2531, 2532, 2535, 2536, 2537, 2538, 2541, 2542,
2543, 2544, 2545, 2549, 2550, 2551, 2554, 2555, 2558, 2559,
2567, 2570, 2570, 2572, 2572, 2576, 2577, 2579, 2583, 2584,
2586, 2586, 2588, 2590, 2594, 2597, 2597, 2599, 2599, 2603,
2606, 2606, 2608, 2608, 2612, 2613, 2615, 2617, 2619, 2621,
2623, 2627, 2628, 2631, 2632, 2633, 2634, 2635, 2636, 2637,
2638, 2639, 2640, 2641, 2642, 2643, 2644, 2645, 2646, 2647,
2648, 2649, 2650, 2651, 2654, 2655, 2656, 2657, 2658, 2659,
2660, 2661, 2662, 2663, 2664, 2665, 2666, 2667, 2668, 2688,
2689, 2690, 2691, 2694, 2698, 2702, 2702, 2706, 2707, 2722,
2723, 2739, 2740, 2743, 2743, 2743, 2750, 2750, 2760, 2761,
2761, 2760, 2770, 2770, 2780, 2780, 2789, 2789, 2789, 2822,
2821, 2832, 2833, 2833, 2832, 2842, 2860, 2860, 2865, 2865,
2870, 2870, 2875, 2875, 2880, 2880, 2885, 2885, 2890, 2890,
2895, 2895, 2900, 2900, 2917, 2917, 2931, 2968, 3006, 3043,
3044, 3051, 3052, 3053, 3054, 3055, 3056, 3057, 3058, 3059,
3060, 3061, 3062, 3065, 3066, 3067, 3068, 3069, 3070, 3071,
3072, 3073, 3074, 3075, 3076, 3077, 3078, 3079, 3080, 3081,
3082, 3083, 3084, 3085, 3086, 3087, 3088, 3089, 3090, 3091,
3092, 3093, 3094, 3095, 3096, 3097, 3098, 3101, 3102, 3103,
3104, 3105, 3106, 3107, 3108, 3109, 3110, 3111, 3112, 3113,
3114, 3115, 3116, 3117, 3118, 3119, 3120, 3121, 3122, 3123,
3124, 3125, 3126, 3127, 3128, 3129, 3132, 3133, 3134, 3135,
3136, 3137, 3138, 3139, 3146, 3147, 3150, 3151, 3152, 3153,
3153, 3154, 3157, 3158, 3161, 3162, 3163, 3164, 3194, 3194,
3195, 3196, 3197, 3198, 3221, 3222, 3225, 3226, 3227, 3228,
3231, 3232, 3233, 3236, 3237, 3239, 3240, 3242, 3243, 3246,
3247, 3250, 3251, 3252, 3256, 3255, 3269, 3270, 3273, 3273,
3275, 3275, 3279, 3279, 3281, 3281, 3283, 3283, 3287, 3287,
3292, 3293, 3295, 3296, 3299, 3300, 3303, 3304, 3307, 3308,
3309, 3310, 3311, 3312, 3313, 3314, 3314, 3314, 3314, 3314,
3315, 3316, 3317, 3318, 3319, 3322, 3325, 3326, 3329, 3332,
3332, 3332
0, 1475, 1475, 1477, 1479, 1478, 1489, 1490, 1491, 1492,
1493, 1494, 1495, 1496, 1497, 1498, 1499, 1500, 1501, 1502,
1503, 1504, 1505, 1506, 1509, 1510, 1511, 1512, 1513, 1516,
1517, 1524, 1531, 1532, 1532, 1536, 1543, 1544, 1547, 1548,
1549, 1552, 1553, 1556, 1556, 1571, 1570, 1576, 1582, 1581,
1586, 1592, 1593, 1594, 1597, 1599, 1601, 1604, 1605, 1608,
1609, 1611, 1613, 1612, 1621, 1625, 1626, 1627, 1630, 1631,
1632, 1633, 1634, 1635, 1636, 1637, 1638, 1639, 1640, 1641,
1642, 1643, 1644, 1645, 1648, 1649, 1650, 1651, 1654, 1655,
1656, 1657, 1660, 1661, 1664, 1666, 1669, 1674, 1675, 1678,
1679, 1682, 1683, 1684, 1695, 1696, 1697, 1701, 1702, 1706,
1706, 1719, 1725, 1733, 1734, 1735, 1738, 1739, 1739, 1743,
1744, 1746, 1747, 1748, 1748, 1756, 1760, 1761, 1764, 1766,
1768, 1769, 1772, 1773, 1781, 1782, 1785, 1786, 1788, 1790,
1792, 1796, 1798, 1799, 1802, 1805, 1806, 1809, 1810, 1809,
1814, 1848, 1851, 1852, 1853, 1855, 1857, 1859, 1863, 1866,
1866, 1897, 1900, 1899, 1917, 1919, 1918, 1923, 1925, 1923,
1927, 1929, 1927, 1931, 1932, 1934, 1931, 1945, 1946, 1949,
1950, 1952, 1953, 1956, 1956, 1966, 1967, 1975, 1976, 1977,
1978, 1981, 1984, 1985, 1986, 1989, 1990, 1991, 1994, 1995,
1996, 2000, 2001, 2002, 2003, 2006, 2007, 2008, 2012, 2017,
2011, 2029, 2033, 2033, 2045, 2044, 2053, 2057, 2060, 2069,
2070, 2073, 2073, 2074, 2075, 2081, 2086, 2087, 2088, 2091,
2094, 2095, 2097, 2098, 2101, 2101, 2109, 2110, 2111, 2114,
2116, 2117, 2121, 2120, 2133, 2134, 2133, 2153, 2153, 2157,
2158, 2161, 2162, 2165, 2171, 2172, 2172, 2175, 2176, 2176,
2178, 2180, 2184, 2186, 2184, 2210, 2211, 2214, 2214, 2216,
2216, 2224, 2227, 2286, 2287, 2289, 2290, 2290, 2293, 2296,
2297, 2301, 2312, 2312, 2331, 2333, 2333, 2351, 2351, 2353,
2357, 2358, 2359, 2358, 2364, 2366, 2367, 2368, 2369, 2370,
2371, 2374, 2375, 2379, 2380, 2384, 2385, 2388, 2389, 2393,
2394, 2395, 2398, 2399, 2402, 2402, 2405, 2406, 2409, 2409,
2413, 2414, 2414, 2421, 2422, 2425, 2426, 2427, 2428, 2429,
2432, 2434, 2436, 2440, 2442, 2444, 2446, 2448, 2450, 2452,
2452, 2457, 2460, 2463, 2466, 2466, 2474, 2474, 2483, 2484,
2485, 2486, 2487, 2488, 2489, 2490, 2491, 2492, 2493, 2494,
2495, 2496, 2497, 2498, 2499, 2500, 2501, 2502, 2503, 2510,
2511, 2512, 2513, 2514, 2515, 2516, 2522, 2523, 2526, 2527,
2529, 2530, 2533, 2534, 2537, 2538, 2539, 2540, 2543, 2544,
2545, 2546, 2547, 2551, 2552, 2553, 2556, 2557, 2560, 2561,
2569, 2572, 2572, 2574, 2574, 2578, 2579, 2581, 2585, 2586,
2588, 2588, 2590, 2592, 2596, 2599, 2599, 2601, 2601, 2605,
2608, 2608, 2610, 2610, 2614, 2615, 2617, 2619, 2621, 2623,
2625, 2629, 2630, 2633, 2634, 2635, 2636, 2637, 2638, 2639,
2640, 2641, 2642, 2643, 2644, 2645, 2646, 2647, 2648, 2649,
2650, 2651, 2652, 2653, 2656, 2657, 2658, 2659, 2660, 2661,
2662, 2663, 2664, 2665, 2666, 2667, 2668, 2669, 2670, 2690,
2691, 2692, 2693, 2696, 2700, 2704, 2704, 2708, 2709, 2724,
2725, 2741, 2742, 2745, 2745, 2745, 2752, 2752, 2762, 2763,
2763, 2762, 2772, 2772, 2782, 2782, 2791, 2791, 2791, 2824,
2823, 2834, 2835, 2835, 2834, 2844, 2862, 2862, 2867, 2867,
2872, 2872, 2877, 2877, 2882, 2882, 2887, 2887, 2892, 2892,
2897, 2897, 2902, 2902, 2919, 2919, 2933, 2970, 3008, 3045,
3046, 3053, 3054, 3055, 3056, 3057, 3058, 3059, 3060, 3061,
3062, 3063, 3064, 3067, 3068, 3069, 3070, 3071, 3072, 3073,
3074, 3075, 3076, 3077, 3078, 3079, 3080, 3081, 3082, 3083,
3084, 3085, 3086, 3087, 3088, 3089, 3090, 3091, 3092, 3093,
3094, 3095, 3096, 3097, 3098, 3099, 3100, 3103, 3104, 3105,
3106, 3107, 3108, 3109, 3110, 3111, 3112, 3113, 3114, 3115,
3116, 3117, 3118, 3119, 3120, 3121, 3122, 3123, 3124, 3125,
3126, 3127, 3128, 3129, 3130, 3131, 3134, 3135, 3136, 3137,
3138, 3139, 3140, 3141, 3148, 3149, 3152, 3153, 3154, 3155,
3155, 3156, 3159, 3160, 3163, 3164, 3165, 3166, 3196, 3196,
3197, 3198, 3199, 3200, 3223, 3224, 3227, 3228, 3229, 3230,
3233, 3234, 3235, 3238, 3239, 3241, 3242, 3244, 3245, 3248,
3249, 3252, 3253, 3254, 3258, 3257, 3271, 3272, 3275, 3275,
3277, 3277, 3281, 3281, 3283, 3283, 3285, 3285, 3289, 3289,
3294, 3295, 3297, 3298, 3301, 3302, 3305, 3306, 3309, 3310,
3311, 3312, 3313, 3314, 3315, 3316, 3316, 3316, 3316, 3316,
3317, 3318, 3319, 3320, 3321, 3324, 3327, 3328, 3331, 3334,
3334, 3334
};
#endif
......@@ -5828,7 +5830,7 @@ yytokenName (yySymbol yytoken)
/** Fill in YYVSP[YYLOW1 .. YYLOW0-1] from the chain of states starting
* at YYVSP[YYLOW0].yystate.yypred. Leaves YYVSP[YYLOW1].yystate.yypred
* containing the pointer to the next state in the chain. */
static void yyfillin (yyGLRStackItem *, int, int) YY_ATTRIBUTE_UNUSED;
static void yyfillin (yyGLRStackItem *, int, int);
static void
yyfillin (yyGLRStackItem *yyvsp, int yylow0, int yylow1)
{
......@@ -5853,8 +5855,8 @@ yyfillin (yyGLRStackItem *yyvsp, int yylow0, int yylow1)
/* Do nothing if YYNORMAL or if *YYLOW <= YYLOW1. Otherwise, fill in
* YYVSP[YYLOW1 .. *YYLOW-1] as in yyfillin and set *YYLOW = YYLOW1.
* For convenience, always return YYLOW1. */
static int yyfill (yyGLRStackItem *, int *, int, yybool)
YY_ATTRIBUTE_UNUSED;
static int yyfill (yyGLRStackItem *, int *, int, yybool);
static int
yyfill (yyGLRStackItem *yyvsp, int *yylow, int yylow1, yybool yynormal)
{
......@@ -5876,7 +5878,7 @@ yyuserAction (yyRuleNum yyn, size_t yyrhslen, yyGLRStackItem* yyvsp,
yyGLRStack* yystackp,
YYSTYPE* yyvalp)
{
yybool yynormal YY_ATTRIBUTE_UNUSED = (yystackp->yysplitPoint == YY_NULLPTR);
yybool yynormal = (yystackp->yysplitPoint == YY_NULLPTR);
int yylow;
YYUSE (yyvalp);
YYUSE (yyrhslen);
......@@ -9963,7 +9965,7 @@ yyresolveValue (yyGLRState* yys, yyGLRStack* yystackp)
{
case 0:
return yyreportAmbiguity (yybest, yyp);
break;
/* break; */
case 1:
yymerge = yytrue;
break;
......
......@@ -20,13 +20,15 @@ This file must be translated to C and modified to build everywhere.
Run bison like this:
bison -b vtkParse vtkParse.y
bison --no-lines -b vtkParse vtkParse.y
Modify vtkParse.tab.c:
- convert TABs to spaces (eight per tab)
- remove spaces from ends of lines, s/ *$//g
- replace all instances of "static inline" with "static".
- replace "#line" lines with blank lines
- replace "#if ! defined lint || defined __GNUC__" with "#if 1"
- remove YY_ATTRIBUTE_UNUSED from yyfillin, yyfill, and yynormal
- remove the "break;" after return "return yyreportAmbiguity"
*/
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment