Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

GCC Flags

Name: Anonymous 2009-06-12 11:30

What's your favourite GCC flag?

Name: Anonymous 2009-06-13 17:26

>>39
Off the top of my head, you can read http://www.sqlite.org/testing.html (section 9.0: Static Analysis). I'm sure you can find more if you try, and of course I have my own anecdotal evidence that supports such a claim.

Name: Anonymous 2009-06-13 17:52

>>41
Not >>39, but I'm eager to hear it.

Name: Anonymous 2009-06-13 18:12

>>38
You'll introduce way more bugs trying to silence the retarded warnings than you'll ever solve real problems.

Yeah, fucking gcc telling me my function has an unreachable case. STUPID.

Name: Anonymous 2009-06-13 18:30

>>41
So, basically, if you totally ignore compiler warnings, but write a shitload of tests and have your code widely used for a long time, and THEN start to fix those warnings, two things happens: first, you find that most of the bugs resulting from the suspicios code were already discovered by your users and the aforementioned shitload of tests, second, by rewriting the code, especially unexperienced as you are with the compiler's complaints, you occasionally introduce new bugs. No shit, Sherlock! Yet the conclusion is a non-sequitur, isn't it?

Name: Anonymous 2009-06-13 23:36

>>44
the whole point of sepples is to make it easier to introduce more bugs, because there weren't enough bugs in c programs.

Name: Anonymous 2009-06-14 4:58

>>36
Oh, sorry. It isn't in the man page but it works.

Name: Anonymous 2009-06-14 8:48

>>46
Look under -Wextra.

Name: Anonymous 2010-12-09 8:46

Name: Anonymous 2012-03-02 23:17

I use clang

Name: EXPERT PROGRAMMR 2012-03-03 1:11

-Wall -Wextra -ansi -pedantic bitch!

Name: Anonymous 2012-03-03 5:21

>>49
Enjoy your broken executables.

Name: Anonymous 2012-03-03 10:12

>>51
I alreaSegmentation fault

Name: Anonymous 2012-03-03 11:31

-O4 -s

Name: Anonymous 2012-03-03 11:45

>>38
Are you saying that you're doing a better job emulating the C abstract machine than my implementation is?

Name: Anonymous 2012-03-03 17:49

gcc -get -dubs

Name: Anonymous 2012-03-03 21:58

-g -Wall -Werror -Wextra -pedantic -pedantic-errors -std=c99

MASTER RACE

Name: Anonymous 2012-03-03 22:01

>>56
c99
Nope.

Name: Anonymous 2012-03-03 22:15

>>57
not using c99
Enjoy not legally having stdint.h. That's the only reason why I use c99. The rest of the features are bullshit.

Name: Anonymous 2012-03-03 22:39

>>58
Please do tell me why anyone would need stdint.h, it isn't even implemented on Windows since it's so useless.

Name: Anonymous 2012-03-03 22:41

>>59
Ask frozen void.

Name: Anonymous 2012-03-03 22:42

>>60
Funny joke, FrozenVoid doesn't even use stdint.h, he just assumes that everybody is running the same compiler/architecture/OS as he is and makes his own flawed defines.

Name: Anonymous 2012-03-03 22:45

>>59
You're a mental midget. You want to know why? It's because the standard integral types are defined as 'one byte', 'at least two bytes', 'at least two bytes', 'at least four bytes' and 'at least eight bytes' for char, short, int, long and long long respectively. What if I want the largest possible ((u)intmax_t)? What if I want an exact type ((u)intn_t), say, if I want to work with binary file formats or network protocols without size definitions breaking between architectures? Picture this: I'm reading a file into a struct, and one of the struct's fields needs to be four bytes. What type do I use? Hint: it's not int, because that can be 2 bytes, and it's not long, as on LP64 platforms, it's 8 byted.

Name: Anonymous 2012-03-03 22:48

>>62
YHBT

Name: Anonymous 2012-03-03 22:49

>>63
;_;

Name: Anonymous 2012-03-04 10:03

>>62
I can't believe the day has come,  but I actually agree with Kodak. Not that you couldn't unofficially hack it together in C90 using structs, sizeofs and void pointers, but why bother if the work has already been done and standardized?

Name: Dubs Guy 2012-03-17 15:46

DUBS, DUBS EVERYWHERE!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List