* src/main.cc: Include <climits> for LONG_MAX. lbtt won't

compile with g++-4.3 otherwise.
* src/Ltl-parse.yy (matchCharactersFromStream): Declare the chars
as const to kill a g++ warning.
* src/NeverClaim-parse.yy (yyerror): Declare the error
message as const to kill a g++ warning.
This commit is contained in:
Alexandre Duret-Lutz 2008-03-13 11:28:18 +01:00
parent 5ef7084b61
commit ab1a2ae5d7
4 changed files with 38 additions and 28 deletions

View file

@ -1,3 +1,12 @@
2008-03-13 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* src/main.cc: Include <climits> for LONG_MAX. lbtt won't
compile with g++-4.3 otherwise.
* src/Ltl-parse.yy (matchCharactersFromStream): Declare the chars
as const to kill a g++ warning.
* src/NeverClaim-parse.yy (yyerror): Declare the error
message as const to kill a g++ warning.
2005-08-30 Heikki Tauriainen <heikki.tauriainen@tkk.fi>
* src/main.cc: [HAVE_ISATTY && HAVE_UNISTD_H]: Include the

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2004, 2005
* Copyright (C) 2004, 2005, 2008
* Heikki Tauriainen <Heikki.Tauriainen@tkk.fi>
*
* This program is free software; you can redistribute it and/or
@ -372,7 +372,7 @@ infix_b_formula: formula LTLPARSE_AND formula
*****************************************************************************/
static inline size_t matchCharactersFromStream
(istream& stream, char* chars)
(istream& stream, const char* chars)
{
size_t num_matched;
for (num_matched = 0; *chars != '\0' && stream.peek() == *chars; ++chars)

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
* Heikki Tauriainen <Heikki.Tauriainen@tkk.fi>
*
* This program is free software; you can redistribute it and/or
@ -83,7 +83,7 @@ extern int yyleng; /* Length of the last
*****************************************************************************/
/* ========================================================================= */
void yyerror(char*)
void yyerror(const char*)
/* ----------------------------------------------------------------------------
*
* Description: Function for reporting never claim parse errors.

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
* Heikki Tauriainen <Heikki.Tauriainen@tkk.fi>
*
* This program is free software; you can redistribute it and/or
@ -21,6 +21,7 @@
#include <csignal>
#include <cstdlib>
#include <ctime>
#include <climits>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif /* HAVE_SYS_TYPES_H */