pelrun / dsk2cdt2disc

Convert CPC DSK files to a tape image that will rebuild the disc when loaded.
13 stars 3 forks source link

Compilation warning. #13

Closed cpcitor closed 7 years ago

cpcitor commented 7 years ago

Warning when compiling.

Compiling ./dsk2cdt-src/cdt.c
In file included from ./dsk2cdt-src/cdt.c:21:0:
./2cdt/src/2cdt.c: In function 'main_2cdt':
./2cdt/src/2cdt.c:1112:33: warning: passing argument 2 of 'ArgumentList_Execute' from incompatible pointer type [-Wincompatible-pointer-types]
  if (ArgumentList_Execute(argc, argv, OptionTable, printf, NonOptionHandler)==OPTION_OK)
                                 ^
In file included from ./2cdt/src/2cdt.c:34:0,
                 from ./dsk2cdt-src/cdt.c:21:
./2cdt/src/opth.h:62:5: note: expected 'const char **' but argument is of type 'char **'
 int ArgumentList_Execute(const int argc, const char **argv,OPTION *pOptionTable, ERROR_FUNCTION pOutputError, int (*pNonOptionHandler)(c
     ^

Will offer pull request.

cpcitor commented 7 years ago

Arg, sorry the warning is in 2cdt. Please ignore.