|
90 | 90 | #include "tclInt.h"
|
91 | 91 |
|
92 | 92 | /*
|
93 |
| - * Bison generates several labels that happen to be unused. MS Visual C++ |
94 |
| - * doesn't like that, and complains. Tell it to shut up. |
| 93 | + * Bison generates several labels that happen to be unused. Several compilers |
| 94 | + * don't like that, and complain. Simply disable the warning to silence them. |
95 | 95 | */
|
96 | 96 |
|
97 | 97 | #ifdef _MSC_VER
|
98 | 98 | #pragma warning( disable : 4102 )
|
99 |
| -#endif /* _MSC_VER */ |
| 99 | +#elif defined (__clang__) && (__clang_major__ > 14) |
| 100 | +#pragma clang diagnostic ignored "-Wunused-but-set-variable" |
| 101 | +#elif (__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))) |
| 102 | +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" |
| 103 | +#endif |
100 | 104 |
|
101 | 105 | #if 0
|
102 | 106 | #define YYDEBUG 1
|
@@ -716,14 +720,14 @@ static const yytype_int8 yytranslate[] =
|
716 | 720 | /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
|
717 | 721 | static const yytype_int16 yyrline[] =
|
718 | 722 | {
|
719 |
| - 0, 171, 171, 172, 176, 179, 182, 185, 189, 193, |
720 |
| - 196, 199, 203, 206, 211, 217, 223, 228, 232, 236, |
721 |
| - 240, 244, 248, 254, 255, 258, 262, 266, 270, 274, |
722 |
| - 278, 284, 290, 294, 299, 300, 305, 309, 314, 318, |
723 |
| - 323, 330, 334, 340, 340, 342, 347, 352, 354, 359, |
724 |
| - 361, 362, 370, 381, 396, 401, 404, 407, 410, 413, |
725 |
| - 416, 419, 424, 427, 432, 437, 442, 449, 452, 455, |
726 |
| - 460, 478, 481 |
| 723 | + 0, 175, 175, 176, 180, 183, 186, 189, 193, 197, |
| 724 | + 200, 203, 207, 210, 215, 221, 227, 232, 236, 240, |
| 725 | + 244, 248, 252, 258, 259, 262, 266, 270, 274, 278, |
| 726 | + 282, 288, 294, 298, 303, 304, 309, 313, 318, 322, |
| 727 | + 327, 334, 338, 344, 344, 346, 351, 356, 358, 363, |
| 728 | + 365, 366, 374, 385, 400, 405, 408, 411, 414, 417, |
| 729 | + 420, 423, 428, 431, 436, 441, 446, 453, 456, 459, |
| 730 | + 464, 482, 485 |
727 | 731 | };
|
728 | 732 | #endif
|
729 | 733 |
|
|
0 commit comments