x86 用の Solaris 10 で C プログラムをコンパイルしています。これはリンクされている部分です。
>yyerrlab1:/*Suppress GCC warning that yyerrlab1 is unused when no action*/
>#if defined (__GNUC_MINOR__)&&2093<=(__GNUC__*1000+__GNUC_MINOR__)
> __attribute__((__unused__))
>#endif
>goto yyerrlab2;
コードは yacc.y という名前のファイルに書かれています。このプログラムを makefile でコンパイルすると、結果は次のようになります。
>bison -d -p syn yacc.y
>yacc.y:conflicts:7shifts/reduce
>mv yacc.tab.h yacc.h
>mv yacc.tab.c yacc.c
>yacc.tab.c: in function 'int synparse()';
>yacc.tab.c:1543:error:expected primary-expression before "__attribute__"
>yacc.tab.c:1543:error:expected ";" before "__attribute__"
コードの何が問題になっていますか?どうすれば修正できますか?