Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: dwarf: Remove uprobeFunction3
The intent behind uprobeFunction3 was to test parsing of anonymous types defined inside parameter lists. However, it was generating the following un-silenceable compiler warning: ``` /home/dxu/dev/bpftrace/tests/testprogs/uprobe_test.c:26:10: warning: anonymous enum declared inside parameter list will not be visible outside of this definition or declaration 26 | enum { A, B, C } e, | ^ [4/5] Linking C executable tests/testprogs/uprobe_test ``` Looking closer, it seems like anon types inside parameter lists is not even supported by C standard until C23 [0][1][2]. Since the warning is un-silencable, I suggest implenting support when C23 is more widely available. [0]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108189 [1]: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3037.pdf [2]: https://www.reddit.com/r/C_Programming/comments/w5hl80/comment/ih8jxi6/?context=3
- Loading branch information