gcc-warning
struct initialization fails with GCC 4
I have a very weird issue whilst initializing a struct with GCC 4.5.3 on my x86_64 Linux box. Code in question:[详细]
2023-04-11 23:46 分类:问答gcc warnings only when there are no errors
Is it possible to tell gcc to show all warnings (like with -Wall) but only if there a开发者_StackOverflow社区re no errors? If there are errors - show only them.I don\'t think so. That would require GC[详细]
2023-04-11 23:09 分类:问答gcc: error: request for member ‘rlen’ in something not a structure or union
I have a unsigned char pointer which contains a structure.Now I want to do the following unsigned char *buffer ;[详细]
2023-04-10 08:20 分类:问答warning: variable set but not used [-Wunused-but-set-variable]
I have been getting following warning while compiling the C source code in the gcc 4.6.1. warning: variable set but not used [-Wunused-but-set-variable][详细]
2023-03-29 07:32 分类:问答GCC warning: ISO C does not permit named variadic macros
Using the following command gcc -c -Wall -Wextra -pedantic -ansi -std=c99 -fstack-protector-all -fstack-check -O3 root.c -orootTESTOBJECT[详细]
2023-03-21 16:44 分类:问答Hexadecimal constant in C is unsigned even though L suffix
I know this is a simple question but I\'m confused. I have a fairly typical gcc warning that\'s usually easy to fix:[详细]
2023-03-21 12:22 分类:问答mingw printf size specification character h
Visual Studio has a size and distance specification chart that says I can do something like this, using the h prefix to specify single byte character string regardless of printf or wprintf:[详细]
2023-03-21 12:14 分类:问答How do I fix the following gcc warnings?
I\'ve started learning OpenGL and managed to create a spinning cube using vertex buffer objects. However, when I compile my code, gcc issues the following warnings:[详细]
2023-03-20 20:19 分类:问答has no member compilation error
I have the following code and when I\'m trying to compile it, I get an error: error: ‘list_item_t’ has no member named ‘state’[详细]
2023-03-19 08:57 分类:问答Why does boost::optional fail for classes inheriting virtual functions
boost::optional<> works perfect for simple data types but as soon as used for a class inheriting from a class implementing an interface it fails when strict aliasing is enabled.[详细]
2023-03-14 18:12 分类:问答