@nrailgun
2015-10-19T17:10:35.000000Z
字数 390
阅读 1456
程序设计
gcc doesn't warn pointer cast by default. Sometimes you want to cast a const void *
to const char *
, but unfortunately you wrote char *
. gcc won't warn you!
C return random shit if you forget your return statement. A wild pointer make you think, "Oh, it points to somewhere safe to visit." Well, actually it doesn't. I found I lost some many return statements in NROS kernel! WTF.