Files
mercury/tests/warnings
Zoltan Somogyi 07ffbce8e7 Implement --warn-sdtlib-shadowing.
compiler/mercury_compile_main.m:
    I added that option a week or so ago, but at that time, it did nothing.
    This diff implements the warning.

library/LIB_FLAGS.in:
    Disable the warning for the modules in the library directory.

configure.ac:
    Require the installed compiler to recognize the option, since without this,
    library/LIBFLAGS won't work.

tests/warnings/profiling_builtin.{m,exp}:
tests/warnings/time.{m,exp}:
tests/warnings/time.subtime.m:
    Two test cases for the warning. One, time, shadows the name of
    a documented library module, the other, profiling_builtin,
    shadows the name an undocumented library module.

    The purpose of time.subtime is to test the message when the module name
    *contains* a stdlib module name, but is not *identical* to it.

tests/warnings/Mmakefile:
    Do *not* turn on the new test cases, but do document why we do not do so.
2022-01-08 04:41:55 +11:00
..
2021-07-27 19:29:21 +10:00
2022-01-08 04:41:55 +11:00
2020-04-15 14:46:20 +10:00
2020-10-27 11:10:11 +11:00
2020-10-27 11:10:11 +11:00
2020-10-27 11:10:11 +11:00
2020-10-27 11:10:11 +11:00
2020-10-27 11:10:11 +11:00
2022-01-08 04:41:55 +11:00
2022-01-08 04:41:55 +11:00
2020-10-27 11:10:11 +11:00
2020-10-27 11:10:11 +11:00
2020-10-27 11:10:11 +11:00
2020-10-27 11:10:11 +11:00