Is there any reasonable initial/invalid value for a pid_t? – Debian
Turning on the -Wextra flag to gcc seems to have the effect of disallowing partial initialization of structs. E.g.: // main.c #include <pthread.h> typedef struct S { int i; pid_t pid; } S; int main( int argc, char* argv[] )…