Skip to content

Instantly share code, notes, and snippets.

@kdrnic
Created March 24, 2018 02:45
Show Gist options
  • Select an option

  • Save kdrnic/e2836aacf74d2eb5a3ee9eebf15385b4 to your computer and use it in GitHub Desktop.

Select an option

Save kdrnic/e2836aacf74d2eb5a3ee9eebf15385b4 to your computer and use it in GitHub Desktop.
main.c: In function 'draw_mesh':
main.c:186:40: warning: passing argument 5 of 'clip3d_f' from incompatible pointer type [-Wincompatible-pointer-types]
clip3d_f(POLYTYPE_FLAT, 0.1, 0.1, 3, ts, vs, t2s, bout);
^~
In file included from ..\libs\allegro-mingw-4.2.2\allegro-mingw-4.2.2\include/allegro/internal/alconfig.h:44:0,
from ..\libs\allegro-mingw-4.2.2\allegro-mingw-4.2.2\include/allegro/base.h:41,
from ..\libs\allegro-mingw-4.2.2\allegro-mingw-4.2.2\include/allegro.h:25,
from main.c:1:
..\libs\allegro-mingw-4.2.2\allegro-mingw-4.2.2\include/allegro/3d.h:74:14: note: expected 'const V3D_f ** {aka const struct V3D_f **}' but argument is of type 'V3D_f ** {aka struct V3D_f **}'
AL_FUNC(int, clip3d_f, (int type, float min_z, float max_z, int vc, AL_CONST V3D_f *vtx[], V3D_f *vout[], V3D_f *vtmp[], int out[]));
^
..\libs\allegro-mingw-4.2.2\allegro-mingw-4.2.2\include/allegro/platform/almngw32.h:63:58: note: in definition of macro 'AL_FUNC'
#define AL_FUNC(type, name, args) extern type name args
^~~~
main.c: In function 'render':
main.c:202:15: warning: unused variable 'h' [-Wunused-variable]
int x, y, w, h;
^
main.c:202:12: warning: unused variable 'w' [-Wunused-variable]
int x, y, w, h;
^
main.c:202:9: warning: unused variable 'y' [-Wunused-variable]
int x, y, w, h;
^
main.c:202:6: warning: unused variable 'x' [-Wunused-variable]
int x, y, w, h;
^
main.c:200:7: warning: unused variable 'buf' [-Wunused-variable]
char buf[80];
^~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment