Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  09 Nov 2013, Razvan Stefan Gornea, Forum, Installation problem output.log
    Reply  10 Nov 2013, Stefan Ritt, Forum, Installation problem 
    Reply  11 Nov 2013, Konstantin Olchanski, Forum, Installation problem 
       Reply  11 Nov 2013, Konstantin Olchanski, Forum, Installation problem 
       Reply  13 Nov 2013, Konstantin Olchanski, Forum, Installation problem 
          Reply  13 Nov 2013, Stefan Ritt, Forum, Installation problem 
       Reply  14 Nov 2013, Razvan Stefan Gornea, Forum, Installation problem 
          Reply  14 Nov 2013, Konstantin Olchanski, Forum, Installation problem 
    Reply  12 Nov 2013, Stefan Ritt, Forum, Installation problem 
       Reply  14 Nov 2013, Konstantin Olchanski, Forum, Installation problem 
Message ID: 936     Entry time: 14 Nov 2013     In reply to: 931
Author: Konstantin Olchanski 
Topic: Forum 
Subject: Installation problem 
> #include "use.h"
>  { USED int i=foo(); }

Sounds nifty, but google does not find use.h.

As for unused variables, some can be removed, others not so much, there is some code in there:

int i = blah...
#if 0
if (i=42) printf("wow, we got a 42!\n");
#endif
and
if (0) printf("debug: i=%d\n", i);

(difference is if you remove "i" or otherwise break the disabled debug code, "#if 0" will complain the next time you need that debugging code, "if (0)" will 
complain right away).

Some of this disabled debug code I would rather not remove - so much debug scaffolding I have added, removed, added again, removed again, all in the same 
places that I cannot be bothered with removing it anymore. I "#if 0" it and it stays there until I need it next time. But of course now gcc complains about it.

K.O.
ELOG V3.1.4-2e1708b5