Skip to content

Commit c499906

Browse files
author
thk123
committed
Correct function_id comment
The variable is used in the declaration of a variable. So there is no need to have the dud usage to suppress warnings about unused variables. Updated comment saying it was unused as well.
1 parent b46e61a commit c499906

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

jbmc/src/java_bytecode/java_string_library_preprocess.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,8 @@ code_blockt java_string_library_preprocesst::make_copy_string_code(
13001300
/// object.
13011301
/// \param type: type of the function
13021302
/// \param loc: location in the source
1303-
/// \param function_id: unused
1303+
/// \param function_id: name of the function (used for variable naming) where
1304+
/// the generated code ends up.
13041305
/// \param symbol_table: symbol table
13051306
/// \return Code corresponding to:
13061307
/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1314,8 +1315,6 @@ code_blockt java_string_library_preprocesst::make_copy_constructor_code(
13141315
const irep_idt &function_id,
13151316
symbol_table_baset &symbol_table)
13161317
{
1317-
(void)function_id;
1318-
13191318
// Code for the output
13201319
code_blockt code;
13211320

0 commit comments

Comments
 (0)