diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-05-26 11:56:36 +0200 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-05-26 16:11:12 +0200 | 
| commit | 76ea392900b755616d7d33cee47692b407c7a816 (patch) | |
| tree | ade83fc2467a5814c69457d3710e29ed7a141c5c /tools | |
| parent | 9cef17c73ed221e1d3766d945ad0878e65eb3217 (diff) | |
tools: fix unused variable in callgraph tool
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/frr-llvm-cg.c | 6 | 
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/frr-llvm-cg.c b/tools/frr-llvm-cg.c index fbcf9222d2..8ce754fecc 100644 --- a/tools/frr-llvm-cg.c +++ b/tools/frr-llvm-cg.c @@ -561,7 +561,6 @@ static void process_call(struct json_object *js_calls,  	unsigned n_args = LLVMGetNumArgOperands(instr);  	bool is_external = LLVMIsDeclaration(called); -	enum called_fn called_type = FN_GENERIC;  	js_call = json_object_new_object();  	json_object_array_add(js_calls, js_call); @@ -570,7 +569,6 @@ static void process_call(struct json_object *js_calls,  			       json_object_new_boolean(is_external));  	if (!called_name || called_len == 0) { -		called_type = FN_NONAME;  		json_object_object_add(js_call, "type",  				       json_object_new_string("indirect")); @@ -653,8 +651,6 @@ static void process_call(struct json_object *js_calls,  		}  #ifdef FRR_SPECIFIC  	} else if (!strcmp(called_name, "_install_element")) { -		called_type = FN_INSTALL_ELEMENT; -  		LLVMValueRef param0 = LLVMGetOperand(instr, 0);  		if (!LLVMIsAConstantInt(param0))  			goto out_nonconst; @@ -694,8 +690,6 @@ static void process_call(struct json_object *js_calls,  			json_object_new_string("install_element"));  		return;  	} else if (is_thread_sched(called_name, called_len)) { -		called_type = FN_THREAD_ADD; -  		json_object_object_add(js_call, "type",  				       json_object_new_string("thread_sched"));  		json_object_object_add(  | 
