Skip to content

Commit 46d7792

Browse files
authored
Merge pull request #1559 from zlaski-semmle/zlaski/futile-params-fix
Reduce precision from `very-high` to `low` due to inability to handle…
2 parents 7bbfffe + ed5e2f3 commit 46d7792

File tree

1 file changed

+10
-0
lines changed
  • cpp/ql/test/query-tests/Likely Bugs/Underspecified Functions

1 file changed

+10
-0
lines changed

cpp/ql/test/query-tests/Likely Bugs/Underspecified Functions/test.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,13 @@ unsigned int defined_with_ptr_arr(unsigned int *ptr[]) {
114114
void declared_and_defined_empty() {
115115
return;
116116
}
117+
118+
extern int will_be_k_and_r();
119+
120+
int call_k_and_r(int i) {
121+
return will_be_k_and_r(i); // GOOD
122+
}
123+
124+
int will_be_k_and_r(val)
125+
int val;
126+
{ return val + 1; }

0 commit comments

Comments
 (0)