Skip to content

Commit

Permalink
build(pthreadShim): return values
Browse files Browse the repository at this point in the history
To address:

/ITKWebAssemblyInterface/src/pthreadShim.cxx:26:2: warning: non-void function does not return a value [-Wreturn-type]
   26 | {}
      |  ^
/ITKWebAssemblyInterface/src/pthreadShim.cxx:33:2: warning: non-void function does not return a value [-Wreturn-type]
   33 | {}
      |  ^
  • Loading branch information
thewtex committed Jan 9, 2025
1 parent 6b19476 commit e1e50d3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pthreadShim.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@
extern "C" {

int pthread_attr_setscope(pthread_attr_t *attr, int contentionscope)
{}
{
return 0;
}

int pthread_atfork(
void (*prepare)(void), // Called before fork
void (*parent)(void), // Called in parent after fork
void (*child)(void) // Called in child after fork
)
{}
{
return 0;
}

} // end extern "C"

0 comments on commit e1e50d3

Please sign in to comment.