X-Git-Url: https://ruderich.org/simon/gitweb/?p=coloredstderr%2Fcoloredstderr.git;a=blobdiff_plain;f=tests%2Fexample_error.c;h=e1140492e6f35a410afc9ec1517e6743553d8395;hp=04eca8dcff611dea9a565ec4bfb384a6d4a626f2;hb=afca2864dc6464201dfe32134ae20e0107297836;hpb=2f1aa1cdd321301db62e25280356bee9a2ac5dfa diff --git a/tests/example_error.c b/tests/example_error.c index 04eca8d..e114049 100644 --- a/tests/example_error.c +++ b/tests/example_error.c @@ -17,12 +17,17 @@ * along with this program. If not, see . */ +#include + #define _GNU_SOURCE /* for program_invocation_name */ #include #include #include #include +#include "../src/compiler.h" + + void (*error_print_progname)(void); @@ -31,7 +36,7 @@ static void print_prognmae(void) { } -int main(int argc, char **argv) { +int main(int argc unused, char **argv unused) { program_invocation_name = "./example_error"; error(0, 0, "");