OCaml Forge
SCM

Detail: [#1242] Makefile, -O3 and -W -Wall

Feature Requests: Browse | Download .csv | Monitor

[#1242] Makefile, -O3 and -W -Wall

Date:
2012-12-19 02:32
Priority:
3
State:
Open
Submitted by:
Francois Berenger (happycrow)
Assigned to:
Nobody (None)
Component:
None
Operating System:
All
Product:
None
 
Summary:
Makefile, -O3 and -W -Wall

Detailed description
Hello,

forgive me for the stupid questions:

- why not -O3 in the Makefile instead of -O2

- why not -W -Wall instead of just -Wall

There are some strange compilation warnings (with the original code and Makefile):
collcomm.c: In function ‘caml_mpi_scatter_float’:
collcomm.c:123: warning: unused variable ‘len’
collcomm.c: In function ‘caml_mpi_scatter_floatarray’:
collcomm.c:145: warning: unused variable ‘srclen’
collcomm.c: In function ‘caml_mpi_gather_float’:
collcomm.c:197: warning: unused variable ‘reslen’
collcomm.c: In function ‘caml_mpi_allgather_float’:
collcomm.c:245: warning: unused variable ‘reslen’

From what I could see, these variables are obviously used.
Why is the compiler not "seeing" this.

The unused i can be removed:
collcomm.c:276: warning: unused variable ‘i’

Thanks a lot,
F.

Followup

No Followups Have Been Posted

Attached Files:

Changes:

No Changes Have Been Made to This Item