aboutsummaryrefslogtreecommitdiff
path: root/gcc/tradcif.y
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-03-28 19:24:11 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-03-28 19:24:11 +0000
commit3fdefbcc63ada60e2d6bca1dc5581f1cd3716ec1 (patch)
treedbd69cd73ee0d9e1da71ec851f34e7aacf15854c /gcc/tradcif.y
parent883e9882ff75073eef98ca4f7762b627502cd9b2 (diff)
downloadgcc-3fdefbcc63ada60e2d6bca1dc5581f1cd3716ec1.zip
gcc-3fdefbcc63ada60e2d6bca1dc5581f1cd3716ec1.tar.gz
gcc-3fdefbcc63ada60e2d6bca1dc5581f1cd3716ec1.tar.bz2
toplev.h (fatal_error): Add ATTRIBUTE_NORETURN.
* toplev.h (fatal_error): Add ATTRIBUTE_NORETURN. * tradcif.y (yyerror): Likewise. Add format specifier in call to `error'. * tradcpp.c (macroexpand): Likewise for call to `error_with_line'. From-SVN: r40939
Diffstat (limited to 'gcc/tradcif.y')
-rw-r--r--gcc/tradcif.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tradcif.y b/gcc/tradcif.y
index 877489d..5def3c9 100644
--- a/gcc/tradcif.y
+++ b/gcc/tradcif.y
@@ -28,7 +28,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <setjmp.h>
static int yylex PARAMS ((void));
- static void yyerror PARAMS ((const char *msgid));
+ static void yyerror PARAMS ((const char *msgid)) ATTRIBUTE_NORETURN;
static int parse_number PARAMS ((int));
static int parse_escape PARAMS ((const char **));
@@ -537,7 +537,7 @@ static void
yyerror (s)
const char *s;
{
- error (s);
+ error ("%s", s);
longjmp (parse_return_error, 1);
}