Opened 13 years ago

Closed 8 years ago

#396 closed defect (fixed)

IZ2175: Various compile warnings on Fedora Core 6

Reported by: opoplawski Owned by:
Priority: lowest Milestone:
Component: sge Version: 6.1preview1
Severity: minor Keywords: PC Linux build
Cc:

Description

[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=2175]

        Issue #:      2175             Platform:     PC            Reporter: opoplawski (opoplawski)
       Component:     gridengine          OS:        Linux
     Subcomponent:    build            Version:      6.1preview1      CC:    None defined
        Status:       NEW              Priority:     P3
      Resolution:                     Issue type:    DEFECT
                                   Target milestone: ---
      Assigned to:    andreas (andreas)
      QA Contact:     andreas
          URL:
       * Summary:     Various compile warnings on Fedora Core 6
   Status whiteboard:
      Attachments:

     Issue 2175 blocks:
   Votes for issue 2175:


   Opened: Fri Jan 26 16:02:00 -0700 2007 
------------------------


When compiling on FC6:

../pr.c: In function 'pr':
../pr.c:67: warning: ignoring return value of 'fwrite', declared with attribute
warn_unus
ed_result
../libs/uti/sge_edit.c: In function 'sge_edit':
../libs/uti/sge_edit.c:67: warning: ignoring return value of 'chown', declared
with attri
bute warn_unused_result
../libs/uti/sge_log.c: In function 'sge_do_log':
../libs/uti/sge_log.c:584: warning: ignoring return value of 'write', declared
with attri
bute warn_unused_result
../libs/uti/sge_os.c: In function 'sge_daemonize_finalize':
../libs/uti/sge_os.c:517: warning: ignoring return value of 'write', declared
with attrib
ute warn_unused_result
../libs/uti/sge_stdio.c: In function 'sge_peopen':
../libs/uti/sge_stdio.c:183: warning: ignoring return value of 'write', declared
with att
ribute warn_unused_result
../libs/uti/sge_stdio.c:189: warning: ignoring return value of 'dup', declared
with attri
bute warn_unused_result
../libs/uti/sge_stdio.c:196: warning: ignoring return value of 'dup', declared
with attri
bute warn_unused_result
../libs/uti/sge_stdio.c:202: warning: ignoring return value of 'dup', declared
with attri
bute warn_unused_result
../libs/uti/sge_stdio.c:203: warning: ignoring return value of 'dup', declared
with attri
bute warn_unused_result
../libs/uti/sge_stdio.c:213: warning: ignoring return value of 'write', declared
with att
ribute warn_unused_result
../libs/uti/sge_stdio.c:223: warning: ignoring return value of 'write', declared
with att
ribute warn_unused_result
../libs/uti/sge_stdio.c:227: warning: ignoring return value of 'write', declared
with att
ribute warn_unused_result
../libs/uti/sge_stdio.c:239: warning: ignoring return value of 'write', declared
with att
ribute warn_unused_result
../libs/uti/sge_stdio.c:248: warning: ignoring return value of 'write', declared
with att
ribute warn_unused_result
../libs/uti/sge_stdio.c:272: warning: ignoring return value of 'write', declared
with att
ribute warn_unused_result

../libs/uti/sge_string.c: In function 'sge_str_is_number':
../libs/uti/sge_string.c:1383: warning: ignoring return value of 'strtod',
declared with
attribute warn_unused_result

../libs/spool/flatfile/sge_spooling_flatfile_scanner.c: In function 'spool_lex':
../libs/spool/flatfile/sge_spooling_flatfile_scanner.l:277: warning: ignoring
return valu
e of 'fwrite', declared with attribute warn_unused_result

../common/parse_job_cull.c: In function 'reroot_path':
../common/parse_job_cull.c:1048: warning: ignoring return value of 'chdir',
declared with
 attribute warn_unused_result

../libs/japi/test_drmaa.c: In function 'test':
../libs/japi/test_drmaa.c:2086: warning: ignoring return value of 'fscanf',
declared with
 attribute warn_unused_result
../libs/japi/test_drmaa.c:3023: warning: ignoring return value of 'fscanf',
declared with
 attribute warn_unused_result
../libs/japi/test_drmaa.c:3107: warning: ignoring return value of 'fscanf',
declared with
 attribute warn_unused_result
../libs/japi/test_drmaa.c:3261: warning: ignoring return value of 'fscanf',
declared with
 attribute warn_unused_result
../libs/japi/test_drmaa.c:3268: warning: ignoring return value of 'fscanf',
declared with
 attribute warn_unused_result
../libs/japi/test_drmaa.c:3920: warning: ignoring return value of 'fscanf',
declared with
 attribute warn_unused_result

../libs/japi/compile.c: In function 'main':
../libs/japi/compile.c:309: warning: ignoring return value of 'system', declared
with att
ribute warn_unused_result

../daemons/common/err_trace.c: In function 'shepherd_trace_init_intern':
../daemons/common/err_trace.c:777: warning: ignoring return value of 'getcwd',
declared w
ith attribute warn_unused_result

../daemons/common/startprog.c: In function 'startprog':
../daemons/common/startprog.c:143: warning: ignoring return value of 'dup',
declared with
 attribute warn_unused_result
../daemons/common/startprog.c:147: warning: ignoring return value of 'dup',
declared with
 attribute warn_unused_result

../daemons/execd/reaper_execd.c: In function 'read_dusage':
../daemons/execd/reaper_execd.c:1475: warning: ignoring return value of
'fscanf', declare
d with attribute warn_unused_result

../daemons/execd/tmpdir.c: In function 'sge_make_tmpdir':
../daemons/execd/tmpdir.c:76: warning: ignoring return value of 'chown',
declared with at
tribute warn_unused_result

admin_mail.o: In function `adm_mail_reset':
/builddir/build/BUILD/gridengine/source/LINUX86_26/../daemons/common/admin_mail.c:332:
wa
rning: memset used with constant zero length parameter; this could be due to
transposed p
arameters

../daemons/schedd/sge_share_mon.c: In function 'main':
../daemons/schedd/sge_share_mon.c:377: warning: ignoring return value of
'fwrite', declar
ed with attribute warn_unused_result

../daemons/shepherd/shepherd.c: In function 'map_signal':
../daemons/shepherd/shepherd.c:191: warning: ignoring return value of 'fscanf',
declared
with attribute warn_unused_result
../daemons/shepherd/shepherd.c: In function 'notify_tasker':
../daemons/shepherd/shepherd.c:2459: warning: ignoring return value of 'chown',
declared
with attribute warn_unused_result

../clients/qalter/qalter.c: In function 'qalter_parse_job_parameter':
../clients/qalter/qalter.c:334: warning: ignoring return value of 'chdir',
declared with
attribute warn_unused_result

../clients/qrsh/qrsh_starter.c: In function 'qrsh_error':
../clients/qrsh/qrsh_starter.c:127: warning: ignoring return value of 'write',
declared w
ith attribute warn_unused_result
../clients/qrsh/qrsh_starter.c: In function 'write_pid_file':
../clients/qrsh/qrsh_starter.c:400: warning: ignoring return value of 'write',
declared w
ith attribute warn_unused_result
../clients/qrsh/qrsh_starter.c: In function 'writeExitCode':
../clients/qrsh/qrsh_starter.c:796: warning: ignoring return value of 'write',
declared w
ith attribute warn_unused_result

../clients/qsh/parse_job_qsh.c: In function 'cull_parse_qsh_parameter':
../clients/qsh/parse_job_qsh.c:213: warning: ignoring return value of 'chdir',
declared w
ith attribute warn_unused_result

../libs/uti/sge_stdio.c: In function 'sge_peopen':
../libs/uti/sge_stdio.c:183: warning: ignoring return value of 'write', declared
with att
ribute warn_unused_result
../libs/uti/sge_stdio.c:189: warning: ignoring return value of 'dup', declared
with attri
bute warn_unused_result
../libs/uti/sge_stdio.c:196: warning: ignoring return value of 'dup', declared
with attri
bute warn_unused_result
../libs/uti/sge_stdio.c:202: warning: ignoring return value of 'dup', declared
with attri
bute warn_unused_result
../libs/uti/sge_stdio.c:203: warning: ignoring return value of 'dup', declared
with attri
bute warn_unused_result
../libs/uti/sge_stdio.c:213: warning: ignoring return value of 'write', declared
with att
ribute warn_unused_result
../libs/uti/sge_stdio.c:223: warning: ignoring return value of 'write', declared
with att
ribute warn_unused_result
../libs/uti/sge_stdio.c:227: warning: ignoring return value of 'write', declared
with att
ribute warn_unused_result
../libs/uti/sge_stdio.c:239: warning: ignoring return value of 'write', declared
with att
ribute warn_unused_result
../libs/uti/sge_stdio.c:248: warning: ignoring return value of 'write', declared
with att
ribute warn_unused_result
../libs/uti/sge_stdio.c:272: warning: ignoring return value of 'write', declared
with att
ribute warn_unused_result

../libs/uti/sge_os.c: In function 'sge_daemonize_finalize':
../libs/uti/sge_os.c:517: warning: ignoring return value of 'write', declared
with attrib
ute warn_unused_result

../utilbin/work.c: In function 'work':
../utilbin/work.c:373: warning: ignoring return value of 'read', declared with
attribute
warn_unused_result
../utilbin/work.c:375: warning: ignoring return value of 'write', declared with
attribute
 warn_unused_result

   ------- Additional comments from andreas Mon Jan 29 03:19:12 -0700 2007 -------
Moved to the 'build' (pseudo-)subcomponent.

I understand that issue does not actually break the build under FC6.
Workaround would be to relax warning-related compile options.


Change History (2)

comment:1 Changed 9 years ago by dlove

  • Priority changed from normal to lowest
  • Severity set to minor

comment:2 Changed 8 years ago by dlove

  • Resolution set to fixed
  • Status changed from new to closed

Most warnings now gone on recent GNU/Linux.

Note: See TracTickets for help on using tickets.