Top "Gcc-warning" questions

GCC is the GNU Compiler Collection, encompassing the gcc C compiler and the g++ C++ compiler, among others.

How can I get rid of deprecated warnings in deprecated functions in GCC?

One way to implement deprecation warnings is to produce warnings on calls to deprecated functions, unless you are calling from …

c++ gcc deprecated gcc-warning
WARNING: "implicit declaration of function '...' is invalid in C99"

I'm getting this warning when I'm trying to compare RGB components of two UIColors In .h file, I declared this …

ios gcc-warning
GCC missing braces around initializer

I have this struct in C below that I want to initialize to all zero. How do I get rid …

c gcc gcc-warning
How to suppress GCC warnings from library headers?

I have a project that uses log4cxx, boost, etc. libraries whose headers generate lots of (repetitive) warnings. Is there …

gcc warnings suppress-warnings gcc-warning
function declared static but never defined

I have a header file suppose abc.h, where i have function declaration as: static int function1(); I have included …

c gcc-warning
Suppress Compiler warning Function declared never referenced

So i have some code like this: void foo (int, int); void bar ( ) { //Do Stuff #if (IMPORTANT == 1) foo (1, 2); #endif } When …

c++ c gcc gcc-warning
How to circumvent format-truncation warning in GCC?

I'm getting the following gcc format-truncation warning: test.c:8:33: warning: ‘/input’ directive output may be truncated writing 6 bytes into a …

c gcc format gcc-warning
Remove #pragma once warnings

I am using #pragma once in my .cpps and .hpps and because of that I get a warning for each …

c++ pragma gcc-warning
Getting the warning "cast to pointer from integer of different size" from the following code

The code is: Push(size, (POINTER)(GetCar(i) == term_Null()? 0 : 1)); Here is the C code push returns ABC which is …

c gcc gcc-warning
GCC -Wuninitialized / -Wmaybe-uninitialized issues

I am experiencing a very strange issue using gcc-4.7 (Ubuntu/Linaro 4.7.2-11precise2) 4.7.2. I am unable to compile the following …

c++ c gcc compiler-optimization gcc-warning