MPS issue job003757

TitleThe MPS does not build with clang -Wconversion
Assigned userGareth Rees
DescriptionSee report from Christian Schafmeister [1]:

    code/nailboard.c:47:23: error: implicit conversion loses integer precision: 'unsigned long' to 'Shift' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32]
     Shift shift = level * LEVEL_SHIFT;
           ~~~~~ ~~~~~~^~~~~~~~~~~~~
AnalysisThis warning is generated by -Wconversion.

(See job003758 for the corresponding issue with respect to gcc.)
How foundcustomer
Evidence[1] <>
Created byGareth Rees
Created on2014-04-11 11:06:21
Last modified byGareth Rees
Last modified on2014-04-11 15:24:30
History2014-04-11 GDR Created.


Change Effect Date User Description
185457 closed 2014-04-11 12:06:28 Gareth Rees Add -Wconversion to options for GCC and Clang.
Ensure that the MPS builds with this option with Clang.