compiler-warnings
Why does GCC warn against this implicit conversion?
GCC warns me that the following piece of code contains an implicit conversion that may change a value:[详细]
2023-04-12 22:28 分类:问答C++ compiler gives pages of warnings when using boost::xpressive
I get a long list of compile warnings when trying to use boost::xpressive; specifically when I use sregex_compiler\'s compile() function.[详细]
2023-04-11 00:46 分类:问答Why do I get a warning about possible loss of data when seeding the random number generator from time(NULL)?
am learning vectors and made a bit of code that selects random numbers i can use for buying lottery tickets here in Netherlands. But although it runs, the compiler is warning me about \'conversion fro[详细]
2023-04-10 00:03 分类:问答build rules for xcode / iPhone
Im incorporating the facebook SDK into an update and i get compiler warnings for four files,in one of my targets each file gets two warnings like these.[详细]
2023-04-09 18:15 分类:问答OpenCV 2.3 in Embarcadero C++ Builder
When compiling a OpenCV 2.3 project in Builder I get multiple errors starting with \"_fm_atan2l is not a member of \'std\'\" and continuing with other math related errors in that form.I also get \"Mul[详细]
2023-04-08 04:29 分类:问答Why does LLVM complain about missing function prototypes?
LLVM 2.1 has an option that enables warnings for \"missing function prototypes.\" When enabled, the warning will complain about a file like this:[详细]
2023-04-08 03:31 分类:问答Returning reference to a local variable
Why can this code run successfully in Code::block. The IDB just reports warning: \"reference to local variable ‘tmp’ returned\",[详细]
2023-04-06 22:37 分类:问答Reference to a temporary variable - why doesn't compiler detect it?
I hope this is not a duplicate, I\'ve read a number of related questions but no one seemed to cover this case:[详细]
2023-04-06 06:40 分类:问答Objective-C UISearchBar may not respond to setContentInset
Will the app containing this warning pass App Store review? With the code, it gets actually rendered in iPhone simulator, but how should I remove the above-mentioned warning in Xcode?[详细]
2023-04-05 09:37 分类:问答How does scoped_lock avoid emitting an "unused variable" warning?
boost::mutex::scoped_lock is a handy RAII wrapper around locking a mutex. I use a similar technique for something else: a RAII wrapper around asking a data interface to detach from/re-attac开发者_Pyth[详细]
2023-04-05 08:21 分类:问答