Fix "unused function" warnings reported by clang++.
* src/evtgbaparse/Makefile.am, src/ltlparse/Makefile.am, src/neverparse/Makefile.am, src/tgbaparse/Makefile.am (AM_CPPFLAGS): Define -DYY_NO_INPUT so that the unused yyinput() function does not get compiled. * src/eltlparse/Makefile.am (AM_CPPFLAGS): Likewise. (AM_CXXFLAGS): Also enable warnings. * src/eltlparse/eltlparse.yy: Move helper functions from the "%code requires" block to the "%code" block, so that they do not appear in the eltlparse.hh file (which is included in two places...). * iface/nips/nips.cc (search_error_callback_assert): Comment this unused function.
This commit is contained in:
parent
45d7c88062
commit
fe535a1594
8 changed files with 84 additions and 59 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2008, 2010 Laboratoire de Recherche et Développement
|
||||
// Copyright (C) 2008, 2010, 2011 Laboratoire de Recherche et Développement
|
||||
// de l'Epita (LRDE).
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -49,18 +49,18 @@ namespace spot
|
|||
}
|
||||
|
||||
// Callback for error which fails on assertions
|
||||
nipsvm_status_t
|
||||
search_error_callback_assert(nipsvm_errorcode_t err, nipsvm_pid_t pid,
|
||||
nipsvm_pc_t pc, void *)
|
||||
{
|
||||
char str[256];
|
||||
|
||||
nipsvm_errorstring (str, sizeof str, err, pid, pc);
|
||||
std::cerr << "RUNTIME ERROR (" << err << "): " << str << std::endl;
|
||||
|
||||
throw nips_exception(std::string(str), static_cast<int>(err));
|
||||
return IC_STOP;
|
||||
}
|
||||
// nipsvm_status_t
|
||||
// search_error_callback_assert(nipsvm_errorcode_t err, nipsvm_pid_t pid,
|
||||
// nipsvm_pc_t pc, void *)
|
||||
// {
|
||||
// char str[256];
|
||||
//
|
||||
// nipsvm_errorstring (str, sizeof str, err, pid, pc);
|
||||
// std::cerr << "RUNTIME ERROR (" << err << "): " << str << std::endl;
|
||||
//
|
||||
// throw nips_exception(std::string(str), static_cast<int>(err));
|
||||
// return IC_STOP;
|
||||
// }
|
||||
|
||||
// state_nips
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue