# HG changeset patch # User mas01cr # Date 1256665735 0 # Node ID 2a97f3f9a6acb3d5edff616a11e7f5fc7cb78895 # Parent 828c1c4e25ccf576895bc44469176dbd8b29a8a1 Rework the audioDB binary / gengetopt command-line parsing glue For cygwin 1.7 / gengetopt 2.22.3, not even the minor constness in the cmdline_parser() call passes muster. Just cast to (char **) and const be damned. diff -r 828c1c4e25cc -r 2a97f3f9a6ac audioDB.cpp --- a/audioDB.cpp Thu Oct 22 12:51:04 2009 +0000 +++ b/audioDB.cpp Tue Oct 27 17:48:55 2009 +0000 @@ -178,7 +178,7 @@ /* KLUDGE: gengetopt generates a function which is not completely const-clean in its declaration. We cast argv here to keep the compiler happy. -- CSR, 2008-10-08 */ - if (cmdline_parser (argc, (char *const *) argv, &args_info) != 0) + if (cmdline_parser (argc, (char **) argv, &args_info) != 0) error("Error parsing command line"); if(argc<2){