News for hackers. Stuff that matters.
Re:Can We Trust the Libraries We Use? by Mathiasdm on Monday August 11, 2014 @11:44AM (#8163722)
__attribute__((unused)) indeed would be the best option when using gcc. I believe when using C++11, this can be replaced by [[gnu::unused]].

Another one that I've seen quite often is casting to void.

Re:Can We Trust the Libraries We Use? by nullc on Friday August 15, 2014 @09:09PM (#8185061)
Not unused. Uninitialized.

E.g. in older GCC you would get int x; switch (!!foo) { case 0:x=0;break; case 1:x=1;break; /no default/ } print(..x)

Or many other cases and the compiler will give an erroneous uninitialized warning. you can assign x to itself at the stop to eliminate the warning without changing the generated code.