mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 04:37:35 +00:00
DevTools: Mark compilation-unit-only functions as static
This enables a nice warning in case a function becomes dead code. Also, in case of signal_trampoline_dummy, marking it external (non-static) prevents it from being 'optimized away', which would lead to surprising and weird linker errors.
This commit is contained in:
parent
84e112be6b
commit
5574d45eda
2 changed files with 4 additions and 2 deletions
|
@ -132,7 +132,7 @@ int main(int argc, char** argv)
|
|||
return app->exec();
|
||||
}
|
||||
|
||||
bool prompt_to_stop_profiling()
|
||||
static bool prompt_to_stop_profiling()
|
||||
{
|
||||
auto window = GUI::Window::construct();
|
||||
window->set_title("Profiling");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue