ini icon indicating copy to clipboard operation
ini copied to clipboard

Add compatibility with g++ compiler and C++11 standard

Open adfelippe opened this issue 4 years ago • 2 comments

It's not possible to use malloc without a cast as g++ treats it as an invalid conversion. Initializing a char pointer with an empty string will also issue a warning, so current_section char pointer must not be initialized.

adfelippe avatar Jan 14 '20 16:01 adfelippe

And I always name my variables new, class and similar, just to annoy C++ programmers thinking one was supposed to compile C code with C++ compilers. 🤔

Humm42 avatar Apr 07 '20 18:04 Humm42

And I always name my variables new, class and similar, just to annoy C++ programmers thinking one was supposed to compile C code with C++ compilers.

Hahaha, fair enough. I'm no C++ programmer, but I had to use Rexroth's mlpiCore lib which is C++ only and then I ran into those issues.

adfelippe avatar Apr 08 '20 12:04 adfelippe