suppress

Ifort suppress unused variable warning, leave all others intact

i use ifort and gfortran to compile my Fortran program. However i also use a coworkers source and he has got a lot of unused variables. How can i suppress these for the compile, seeing as they are not really an error? However i dont want to disable -pedantic and -stan in the compiler options and thus want all the other warnings. ch...

How to eliminate preprocessor warning about pasting certain tokens

Is it possible with gcc to eliminate the warning below without eliminating all warnings? pasting "/" and "/" does not give a valid preprocessing token For a certain platform, I must use a specific cross-compiler, but I can use make, so I use gcc to create the dependencies. I know that I'm passing the “//” token to the compiler and it’...

Suppress system("ping") output in C++

Hi guys, I have written a simple program that pings three sites and then reacts to whether they are reachable or not. My question is: can I suppress system("ping ")'s output? I have written my code in C++ as I know that language the best. Currently the code opens the ping.exe running the system command. If I can prevent the output from...