Files
Bin Wang 9631915acb i#7975: Enable -Wstrict-prorotypes when compiling C files (#7976)
As we are trying to build DR files with the Linux kernel build system
(Kbuild), which has `-Wstrict-prototypes` turned on by default, we are
turning it on in this project as well. Also, the [coding style
conventions](https://dynamorio.org/page_code_style.html#autotoc_md106)
of this project already requires that declarations of functions that
take no argument should have the explicit `void` keyword in their
signatures.

- Enable `-Wstrict-prototypes` when compiling C files.
- Add explicit `void` to the signatures of functions that take no
argument.

For global functions whose declarations already have `void` (or were
added `void` in this PR), this PR also adds `void` to their definitions.
This is an optional cosmetic match, not required by the style guide or
`-Wstrict-prototypes`.

Fixed #7975
2026-07-08 21:11:43 -07:00

21 lines
437 B
C

#ifndef _JIT_OPT_H_
#define _JIT_OPT_H_
void
jitopt_init(void);
void
jitopt_exit(void);
/* Account for a DGC basic block having the specified span in app space. */
void
jitopt_add_dgc_bb(app_pc start, app_pc end, bool is_trace_head);
/* Clear the fragment accounting structure within the specified span.
* Returns the number of accounted basic blocks that were removed.
*/
uint
jitopt_clear_span(app_pc start, app_pc end);
#endif