compiler-warnings
Calling an inherited method causes warning without cast to superclass
I have the following inheritance tree: NSObject <- GameObject <- RenderableObject <- SimpleBullet[详细]
2023-03-29 12:07 分类:问答How can I avoid synthetic access compiler warning with inline-anonymous class declaration and what does it mean?
I have the following code: public class SomeClass { //InterfaceUpdateListener is an interface private InterfaceUpdateListener listener = new InterfaceUpdateListener(){[详细]
2023-03-28 07:24 分类:问答Warning C4172: Returning a reference to const std::string bound to a local variable. How safe is it?
I was just building one of our projects at work and I see a new function was added: const std::string& ClassName::MethodName() const[详细]
2023-03-27 21:27 分类:问答Restructure code block so that Unused warning is eliminated
Having inherited a project from an Outsourced development company, I\'ve been asked to modify the application and add some features.[详细]
2023-03-27 09:30 分类:问答Why does Xcode 4 mark variables as unused even if they are?
I\'m instantiating and scheduling a timer variable but Xcode compiler and analyzer marks my var \"levelScoreTimer\" with 2 warnings like \"warning: unused variable \'levelScoreTimer\' and \"Dead store[详细]
2023-03-27 05:05 分类:问答Visual Studio 2010 (C++): suppress C4706 warning temporarily
When you compile the following C++ source file in Visual Studio 2010 with warning level /W4 enabled #include <cstdio>// for printf[详细]
2023-03-26 12:55 分类:问答Can I get Code Contracts to warn me about "illegal" subtyping?
Sorry if this question seems too long. Before I can ask it, I need to show where it\'s coming from. Set-up:[详细]
2023-03-26 07:11 分类:问答Xcode 4 and wrong "Semantic Issues" - How to deal with them?
I\'ve started using Xcode 4, and I\'m really annoyed by some of the \"features\" especially those semantic warnings which don\'t seem to be making much sense, for example:[详细]
2023-03-26 06:49 分类:问答Compiler warning when creating custom std stream implementation
I have a Visual Studio 2008 C++ application where I\'ve created a custom streambuf and stream implementation. I\'ve used an approach given by Angelika Langer for creating the stream detailed below:[详细]
2023-03-25 06:27 分类:问答What are "lowered vtable references"?
Clang\'s own diagnostics propaganda contains this exerpt: Since Clang has range highlighting, it never needs to pretty print your code back out to you. This is particularly bad in G++ (which often e[详细]
2023-03-25 04:00 分类:问答