C++ comment in binary_log_types.h header

Sebastien FLAESCH <[email protected]>
Newsgroups gmane.comp.db.mysql.general
Organization Four Js Development Tools
Message-ID <[email protected]>
Hi all,

In version 5.7.10, I found a C++ comment in the .h headers:

#endif // __cplusplus

Should be:

#endif /* __cplusplus */

To avoid:

cc -g -fsanitize=address -fno-omit-frame-pointer -W -Wall -pedantic -Wmissing-prototypes \
    -Wno-long-long -Werror -fPIC \
    -I/opt3/dbs/mys/5.7/include \
     mys.c -o mys_5_7.o
In file included from /opt3/dbs/mys/5.7/include/mysql_com.h:22:0,
                  from /opt3/dbs/mys/5.7/include/mysql.h:58,
                  from mys.c:41:
/opt3/dbs/mys/5.7/include/binary_log_types.h:68:8: error: C++ style comments are not allowed in ISO C90 [-Werror]
  #endif // __cplusplus */


Seb

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.