When compiled with -pedantic reports diagnostics when the translation unit is empty because it is requested by the C standard. To make gcc happy, you can add a dummy typedef to the empty .c file:
typedef int make_iso_compilers_happy;
or
extern int make_iso_compilers_happy;
source share