Title | The MPS does not build with clang -Wconversion |
Status | closed |
Priority | optional |
Assigned user | Gareth Rees |
Organization | Ravenbrook |
Description | See 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; ~~~~~ ~~~~~~^~~~~~~~~~~~~ |
Analysis | This warning is generated by -Wconversion. (See job003758 for the corresponding issue with respect to gcc.) |
How found | customer |
Evidence | [1] <https://info.ravenbrook.com/mail/2014/04/11/10-04-54/0/ > |
Created by | Gareth Rees |
Created on | 2014-04-11 11:06:21 |
Last modified by | Gareth Rees |
Last modified on | 2014-04-11 15:24:30 |
History | 2014-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. |