warnings.txt
来自「伯克利做的SFTP安全文件传输协议」· 文本 代码 · 共 28 行
TXT
28 行
warnings.txt------------This file documents warnings that various compilers give becauseI can't turn them off and I refuse to pacify such braindeadconcerns.g++, lots of places: comparison between signed and unsigned Every place this occurs, I am comparing quantities for *equality*! Thus, the chances of an error are remote, and the ugliness of introducing (system-header-dependent!!) casts everywhere is not worth it.g++, few places: class has virtual functions but non-virtual destructor Maybe it's ok to tell programming students that all classes with virtual fns need virtual dtors, but it's not true in general and so why burden me with this rabble?? Maybe if the warning accompanied actual use of polymorphism and dynamic type != static type then this wouldn't be such a wolf cry.g++, couple files: passing (some enum) chooses `int' over `long int' This is so retarded.. I don't know where to begin.In summary, g++ sucks (yet again), and I am continuing to reconsideringever having turned on g++'s warnings. Borland knows (did know..) whatthey're doing, gnu and ms have their heads up their asses!
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?