Menu

#2 prg2wav - small incompatibility with GCC

None
closed
nobody
None
1
2022-01-06
2014-06-04
Wyatt Ward
No

While wav2prg works fine in linux with GCC, prg2wav fails to build with GCC because of line 38, specifically:

__declspec (noreturn) static void help(const struct get_option *options, const char *progname, int errorcode){

Build succeeds if this is changed to:

__attribute__ ((noreturn)) static void help(const struct get_option *options, const char *progname, int errorcode){

A cross platform fix would be something like:
#ifdef _MSC_VER
__declspec (noreturn) static void help(const struct get_option *options, const char *progname, int errorcode){
#else
__attribute__ ((noreturn)) static void help(const struct get_option *options, const char *progname, int errorcode){
#endif

Or at least, I think this works.

Discussion

  • Fabrizio Gennari

    • status: open --> closed
    • Group: -->
     
  • Fabrizio Gennari

    Fixed in version 4.1

     

Log in to post a comment.

MongoDB Logo MongoDB