X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=tests%2Fexample_error.c;h=e1140492e6f35a410afc9ec1517e6743553d8395;hb=9434382c9ee992da3c21ff830793f15a55fc2b2d;hp=04eca8dcff611dea9a565ec4bfb384a6d4a626f2;hpb=7f9856c5dace35f8efe5a20ee1013815e67b9550;p=coloredstderr%2Fcoloredstderr.git 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, "");