Skip to content

Commit 5700281

Browse files
committed
Remove names of unused parameters
1 parent 9480092 commit 5700281

File tree

94 files changed

+230
-234
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+230
-234
lines changed

jbmc/src/java_bytecode/java_bytecode_language.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,23 +142,23 @@ std::set<std::string> java_bytecode_languaget::extensions() const
142142
return { "class", "jar" };
143143
}
144144

145-
void java_bytecode_languaget::modules_provided(std::set<std::string> &modules)
145+
void java_bytecode_languaget::modules_provided(std::set<std::string> &)
146146
{
147147
// modules.insert(translation_unit(parse_path));
148148
}
149149

150150
/// ANSI-C preprocessing
151151
bool java_bytecode_languaget::preprocess(
152-
std::istream &instream,
153-
const std::string &path,
154-
std::ostream &outstream)
152+
std::istream &,
153+
const std::string &,
154+
std::ostream &)
155155
{
156156
// there is no preprocessing!
157157
return true;
158158
}
159159

160160
bool java_bytecode_languaget::parse(
161-
std::istream &instream,
161+
std::istream &,
162162
const std::string &path)
163163
{
164164
PRECONDITION(language_options_initialized);
@@ -579,7 +579,7 @@ static void create_stub_global_symbols(
579579

580580
bool java_bytecode_languaget::typecheck(
581581
symbol_tablet &symbol_table,
582-
const std::string &module)
582+
const std::string &)
583583
{
584584
PRECONDITION(language_options_initialized);
585585

@@ -1066,7 +1066,7 @@ bool java_bytecode_languaget::convert_single_method(
10661066
return true;
10671067
}
10681068

1069-
bool java_bytecode_languaget::final(symbol_table_baset &symbol_table)
1069+
bool java_bytecode_languaget::final(symbol_table_baset &)
10701070
{
10711071
PRECONDITION(language_options_initialized);
10721072
return false;

jbmc/src/java_bytecode/java_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ inline annotated_typet &to_annotated_type(typet &type)
9393
}
9494

9595
template <>
96-
inline bool can_cast_type<annotated_typet>(const typet &type)
96+
inline bool can_cast_type<annotated_typet>(const typet &)
9797
{
9898
return true;
9999
}

jbmc/src/java_bytecode/remove_exceptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ void remove_exceptions(
616616
remove_exceptions_typest type)
617617
{
618618
remove_exceptionst::function_may_throwt any_function_may_throw =
619-
[](const irep_idt &id) { return true; };
619+
[](const irep_idt &) { return true; };
620620

621621
remove_exceptionst remove_exceptions(
622622
symbol_table,

src/analyses/ai.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ bool ai_baset::do_function_call(
385385
locationt l_call, locationt l_return,
386386
const goto_functionst &goto_functions,
387387
const goto_functionst::function_mapt::const_iterator f_it,
388-
const exprt::operandst &arguments,
388+
const exprt::operandst &,
389389
const namespacet &ns)
390390
{
391391
// initialize state, if necessary

src/analyses/ai.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ class ai_domain_baset
6565
const namespacet &ns) = 0;
6666

6767
virtual void output(
68-
std::ostream &out,
69-
const ai_baset &ai,
70-
const namespacet &ns) const
68+
std::ostream &,
69+
const ai_baset &,
70+
const namespacet &) const
7171
{
7272
}
7373

@@ -112,7 +112,7 @@ class ai_domain_baset
112112
// return true if unchanged
113113
virtual bool ai_simplify(
114114
exprt &condition,
115-
const namespacet &ns) const
115+
const namespacet &) const
116116
{
117117
return true;
118118
}
@@ -461,10 +461,10 @@ class ait:public ai_baset
461461

462462
// not implemented in sequential analyses
463463
bool merge_shared(
464-
const statet &src,
465-
goto_programt::const_targett from,
466-
goto_programt::const_targett to,
467-
const namespacet &ns) override
464+
const statet &,
465+
goto_programt::const_targett,
466+
goto_programt::const_targett,
467+
const namespacet &) override
468468
{
469469
throw "not implemented";
470470
}

src/analyses/constant_propagator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ void constant_propagator_domaint::transform(
220220
/// handles equalities and conjunctions containing equalities
221221
bool constant_propagator_domaint::two_way_propagate_rec(
222222
const exprt &expr,
223-
const namespacet &ns)
223+
const namespacet &)
224224
{
225225
#ifdef DEBUG
226226
std::cout << "two_way_propagate_rec: " << format(expr) << '\n';
@@ -386,7 +386,7 @@ void constant_propagator_domaint::valuest::output(
386386

387387
void constant_propagator_domaint::output(
388388
std::ostream &out,
389-
const ai_baset &ai,
389+
const ai_baset &,
390390
const namespacet &ns) const
391391
{
392392
values.output(out, ns);
@@ -498,8 +498,8 @@ bool constant_propagator_domaint::valuest::meet(const valuest &src)
498498
/// \return Return true if "this" has changed.
499499
bool constant_propagator_domaint::merge(
500500
const constant_propagator_domaint &other,
501-
locationt from,
502-
locationt to)
501+
locationt,
502+
locationt)
503503
{
504504
return values.merge(other.values);
505505
}

src/analyses/custom_bitvector_analysis.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ void custom_bitvector_domaint::transform(
543543
void custom_bitvector_domaint::output(
544544
std::ostream &out,
545545
const ai_baset &ai,
546-
const namespacet &ns) const
546+
const namespacet &) const
547547
{
548548
if(has_values.is_known())
549549
{
@@ -589,8 +589,8 @@ void custom_bitvector_domaint::output(
589589

590590
bool custom_bitvector_domaint::merge(
591591
const custom_bitvector_domaint &b,
592-
locationt from,
593-
locationt to)
592+
locationt,
593+
locationt)
594594
{
595595
bool changed=has_values.is_false();
596596
has_values=tvt::unknown();

src/analyses/dependence_graph.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Date: August 2013
2424

2525
bool dep_graph_domaint::merge(
2626
const dep_graph_domaint &src,
27-
goto_programt::const_targett from,
28-
goto_programt::const_targett to)
27+
goto_programt::const_targett,
28+
goto_programt::const_targett)
2929
{
3030
// An abstract state at location `to` may be non-bottom even if
3131
// `merge(..., `to`) has not been called so far. This is due to the special
@@ -151,7 +151,7 @@ static bool may_be_def_use_pair(
151151
}
152152

153153
void dep_graph_domaint::data_dependencies(
154-
goto_programt::const_targett from,
154+
goto_programt::const_targett,
155155
goto_programt::const_targett to,
156156
dependence_grapht &dep_graph,
157157
const namespacet &ns)
@@ -237,8 +237,8 @@ void dep_graph_domaint::transform(
237237

238238
void dep_graph_domaint::output(
239239
std::ostream &out,
240-
const ai_baset &ai,
241-
const namespacet &ns) const
240+
const ai_baset &,
241+
const namespacet &) const
242242
{
243243
if(!control_deps.empty())
244244
{
@@ -275,8 +275,8 @@ void dep_graph_domaint::output(
275275
/// \par parameters: The abstract interpreter and the namespace.
276276
/// \return The domain, formatted as a JSON object.
277277
jsont dep_graph_domaint::output_json(
278-
const ai_baset &ai,
279-
const namespacet &ns) const
278+
const ai_baset &,
279+
const namespacet &) const
280280
{
281281
json_arrayt graph;
282282

src/analyses/escape_analysis.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ void escape_domaint::get_rhs_aliases_address_of(
163163

164164
void escape_domaint::transform(
165165
locationt from,
166-
locationt to,
167-
ai_baset &ai,
168-
const namespacet &ns)
166+
locationt,
167+
ai_baset &,
168+
const namespacet &)
169169
{
170170
if(has_values.is_false())
171171
return;
@@ -255,8 +255,8 @@ void escape_domaint::transform(
255255

256256
void escape_domaint::output(
257257
std::ostream &out,
258-
const ai_baset &ai,
259-
const namespacet &ns) const
258+
const ai_baset &,
259+
const namespacet &) const
260260
{
261261
if(has_values.is_known())
262262
{
@@ -301,8 +301,8 @@ void escape_domaint::output(
301301

302302
bool escape_domaint::merge(
303303
const escape_domaint &b,
304-
locationt from,
305-
locationt to)
304+
locationt,
305+
locationt)
306306
{
307307
bool changed=has_values.is_false();
308308
has_values=tvt::unknown();

src/analyses/escape_analysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class escape_analysist:public ait<escape_domaint>
112112
void instrument(goto_modelt &);
113113

114114
protected:
115-
virtual void initialize(const goto_functionst &_goto_functions)
115+
virtual void initialize(const goto_functionst &)
116116
{
117117
}
118118

0 commit comments

Comments
 (0)