The cunit plugin auto-generates some code, namely the gradle_cunit_register.h header file. If I compile this code with -pedantic-errors, I get:
gradle_cunit_register.h:4:30: error: no newline at end of file [-Werror,-Wnewline-eof]
Of course I can compile without -pedantic-errors, but I consider it good practice to always have all errors enabled. And a newline at the end of the file should be easy to fix.