gcc-warning
How do you cast from a bit-field to a pointer?
I\'ve written the following bit of code that is producing a warning: initialization makes pointer from integer without a cast[详细]
2023-02-02 12:24 分类:问答force gcc to compile when stack-overflow is detected
How can i force gcc to compile 开发者_如何学JAVAa program in which i declare an array of unsigned integers that is bigger than my ram - without getting the warning warning: \"integer overflow in expre[详细]
2023-01-30 19:20 分类:问答Forcing VS2008 to issue a GCC warning similar to "warning: comparison between signed and unsigned integer expressions"
Along the same lines as to what was described in conversion to ‘size_t’ from ‘int’ may change the sign of the result - GCC , C, I would instead like to insure that the warning I receive under GCC[详细]
2023-01-29 14:22 分类:问答Why does a "function name" evaluate to true in C and how to get warned on it
I recently stumbled across the following behaviour of gcc 3.2.2 writing a c program: In an if statement I forgot the braces of a function and wrote:[详细]
2023-01-28 15:02 分类:问答Forcing GCC 4.x to treat -Wreturn-type as an error without enabling -Werror?
Suppose we have the following code: #if !defined(__cplusplus) #error This file should be compiled as C++[详细]
2023-01-26 07:54 分类:问答MSVC equivalent of __attribute__ ((warn_unused_result))?
I\'m finding __attribute__ ((warn_unused_result)) to be very useful as a means of encouraging developers not to ignore error codes returned by functions, but I need this to work with MSVC as well as g[详细]
2023-01-26 03:16 分类:问答C warning: implicit declaration of function
Yes, this question has been asked many times, and I\'ve been looking and reading forums, and SO posts, but the answers are all unrelated (or so they seem) to this one. So, I have this main file :[详细]
2023-01-25 10:46 分类:问答What does gcc -rpath combined with -W1 mean?
I can see from man gcc that -W has something to do 开发者_JS百科with warnings, but I cannot work out exactly what -W1 would be doing. I am building using the following my Makefile.am:[详细]
2023-01-24 07:38 分类:问答Can I edit the print output of GCC in linux?
I want the error massages print in a different color to terminal, is it possible and how? I want to print the wor开发者_Python百科d \'ERROR\' in red and \'warning\' in yellow.[详细]
2023-01-23 11:43 分类:问答Suppressing "ISO C99 requires rest arguments to be used"
Consider the following two macros: #define PNORM( v, s, ... ){ \\ if( VERBOSITY_CHECK( v ) ) { \\ if( ( errno = pthread_mutex_lock(&server.output_mutex) ) ) { \\[详细]
2023-01-23 08:05 分类:问答