Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
7Raiden8786y@blockchaintacos I'm a happy user of GCC8, what is the warning in question? Just curious :)
-
@Charon92 please clarify — I am not aware of the proper rules of meme use, but interested in learning more.
-
@7Raiden so I’m developing an introductory hands-on course on C for (primarily Python) developers in my org. I’m taking a heuristic approach that gets their hands on the keyboard in the first 5 minutes and all throughout, and during a simplistic introduction to variable declaration and assignment, I (intentionally) assign a floating point value to an int to reinforce that int’s are whole numbers. cl warned about the narrowing conversion (double to int) whereas gcc didn’t complain at all.
-
7Raiden8786y@blockchaintacos well, you need to enable the specific warning for that :) it's unintuitive that -Wall is not actually *every* warning! And -Wextra and -Wpedantic do not give them all either! On Github you find an exhaustive list of all possible warning!
Otherwise use clang, with - Weverything! But CL is far from being a compiler as good as gcc and clang! -
@7Raiden and I’ll update the tutorial lest they get the wrong impression of gcc
-
7Raiden8786y@blockchaintacos yes exactly :) I tend to say that clang it's a very good compiler, but I still use gcc for performance!
Related Rants
When /W4 in Visual Studio (cl) shows more (and more helpful) information than /Wall /Wextra /pedantic in gcc (MinGW)....
I was not expecting that....
rant
ansi c
visual studio
c
windows