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: 933     Entry time: 13 Nov 2013     In reply to: 932
Author: Stefan Ritt 
Topic: Forum 
Subject: Installation problem 
> got around to look at compile messages on ubuntu: in addition to "variable 'error' set but not used" we have these:
> 
> warning: ignoring return value of 'ssize_t write(int, const void*, size_t)'
> warning: ignoring return value of 'ssize_t read(int, void*, size_t)'
> warning: ignoring return value of 'int setuid(__uid_t)'
> and a few more of similar

Arghh, now it is getting even more picky. I can understand the "variable xyz set but not used" and I'm willing to remove all the variables. But checking the 
return value from every function? Well, if the disk gets full, our code will silently ignore this for write(), so maybe it's not a bad idea to add a few checks. Also 
for the read(), there could be some problem, where an explicit cm_msg() in case of an error would help.
ELOG V3.1.4-2e1708b5