Top "Gcc-warning" questions

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

Is there a way to get warned about unused functions?

I'd like to find unused functions in a codebase - including across compilations units. I'm using gcc as my compiler. …

c gcc gcc-warning
suppress gcc warnings : "warning: this is the location of the previous definition"

I need a set of wrappers around the standard system calls-open,listen,etc. For these i have a few "#define" …

linux gcc-warning include-guards
Why is gcc warning me this line is "misleadingly indented as if it were guarded by" an if?

The warning is: /home/dronz/OF/apps/myApps/HexMap/src/HexMap.cpp:48:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] …

c++ gcc-warning
Make one gcc warning an error?

I get this warning from GCC: warning: cannot pass objects of non-POD type 'class Something' through '...'; call will …

gcc gcc-warning
Error: this statement may fall through [-Werror=implicit-fallthrough=]

I am trying to compile mitk on ubuntu and I got this error : error: this statement may fall through [-Werror=…

c++ gcc build gcc-warning mitk
implicit declaration of function ‘strtok_r’ [-Wimplicit-function-declaration] inspite including <string.h>

I have the following code to tokenize a string containing lines separated by \n and each line has integers separated …

c string tokenize strtok gcc-warning
Meaning of g++ flags -Wall -W -Werror

What are these and what do they do? -Wall -W -Werror I am using terminal in Ubuntu to compile programs …

gcc-warning compiler-flags
Suppress warning: the use of `mktemp' is dangerous

How can I suppress following warning from gcc linker: warning: the use of 'mktemp' is dangerous, better use 'mkstemp' I …

c security gcc gcc-warning mktemp
How to avoid "null argument where non-null required" compiler warning

Compiling the following code: #include <string.h> #define FOO (NULL) int main(int argc, char *argv[]) { char *foo; …

c gcc-warning strdup