Skip to content

Conversation

@adfelippe
Copy link

@adfelippe adfelippe commented Jan 14, 2020

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.

It's not possible to use malloc without a cast as it 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.
@Humm42
Copy link

Humm42 commented Apr 7, 2020

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. 🤔

@adfelippe
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants