Skip to content

BUG: Warning when compiling tests #3

@alejandro-colomar

Description

@alejandro-colomar
$ make tests
gcc -O3 -I./src -o test/anim test/anim.c gnuplot_i.o
gcc -O3 -I./src -o test/example test/example.c gnuplot_i.o
gcc -O3 -I./src -lm -o test/png test/png.c gnuplot_i.o
test/png.c: In function ‘main’:
test/png.c:42:53: warning: passing argument 6 of ‘gnuplot_plot_x_multi_y’ from incompatible pointer type [-Wincompatible-pointer-types]
   42 |  gnuplot_plot_x_multi_y(g, x, y, N_POINTS, N_LINES, t);
      |                                                     ^
      |                                                     |
      |                                                     char **
In file included from test/png.c:7:
./src/gnuplot_i.h:408:18: note: expected ‘const char **’ but argument is of type ‘char **’
  408 |     const char** title);
      |     ~~~~~~~~~~~~~^~~~~

This is without changing the Makefile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions