mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 01:13:30 +00:00
compiler/add_foreign_proc.m:
Use the agreed wording *consistently* in the diagnostics
generated by this module.
Also, delete a call to the test for builtins that I recently
accidentally duplicated instead of just moving.
tests/invalid/foreign_proc_dup_var.err_exp:
tests/invalid/foreign_purity_mismatch.err_exp:
tests/invalid/fp_dup_bug.err_exp:
tests/invalid/pragma_qual_error.err_exp:
tests/warnings/foreign_singleton.err_exp:
tests/warnings/singleton_test.err_exp:
tests/warnings/warn_return.err_exp:
tests/warnings/warn_succ_ind.err_exp:
Expect the updated wording for all those diagnostics.
3.5 KiB
3.5 KiB
singleton_test.m:014: Warning: unresolved polymorphism in function
singleton_test.m:014: `my_append_func'/2.
singleton_test.m:014: The variables with unbound types were:
singleton_test.m:014: `L1',
singleton_test.m:014: `L2'.
singleton_test.m:014: Their types will be implicitly set to the builtin type
singleton_test.m:014: `void'.
singleton_test.m:038: In clause for predicate `my_append'/3:
singleton_test.m:038: warning: variable `L2' occurs only once in this scope.
singleton_test.m:038: (Did you mean `L' or `L1'?)
singleton_test.m:042: In clause for function `my_append_func'/2:
singleton_test.m:042: warning: variable `L1' occurs only once in this scope.
singleton_test.m:042: (Did you mean `L' or `L2'?)
singleton_test.m:042: In clause for function `my_append_func'/2:
singleton_test.m:042: warning: variable `L2' occurs only once in this scope.
singleton_test.m:042: (Did you mean `L' or `L1'?)
singleton_test.m:043: In clause for function `my_append_func'/2:
singleton_test.m:043: warning: variable `T' occurs only once in this scope.
singleton_test.m:045: In clause for predicate `test_head'/6:
singleton_test.m:045: warning: variable `_D' occurs more than once in this
singleton_test.m:045: scope.
singleton_test.m:045: In clause for predicate `test_head'/6:
singleton_test.m:045: warning: variables `A' and `B' occur only once in this
singleton_test.m:045: scope.
singleton_test.m:049: In the C foreign_proc for predicate `my_c_pred'/3:
singleton_test.m:049: warning: variable `Y' does not occur in the C code.
singleton_test.m:055: In the C# foreign_proc for predicate `my_c_pred'/3:
singleton_test.m:055: warning: variable `Y' does not occur in the C# code.
singleton_test.m:061: In the Java foreign_proc for predicate `my_c_pred'/3:
singleton_test.m:061: warning: variable `Y' does not occur in the Java code.
singleton_test.m:070: In the C foreign_proc for function `my_c_func'/2:
singleton_test.m:070: warning: variable `X' does not occur in the C code.
singleton_test.m:076: In the C# foreign_proc for function `my_c_func'/2:
singleton_test.m:076: warning: variable `X' does not occur in the C# code.
singleton_test.m:082: In the Java foreign_proc for function `my_c_func'/2:
singleton_test.m:082: warning: variable `X' does not occur in the Java code.
singleton_test.m:091: In the C foreign_proc for predicate `c_hello_world'/3:
singleton_test.m:091: warning: variable `Msg' does not occur in the C code.
singleton_test.m:098: In the C# foreign_proc for predicate `c_hello_world'/3:
singleton_test.m:098: warning: variable `Msg' does not occur in the C# code.
singleton_test.m:105: In the Java foreign_proc for predicate `c_hello_world'/3:
singleton_test.m:105: warning: variable `Msg' does not occur in the Java
singleton_test.m:105: code.
For more information, recompile with `-E'.
singleton_test.m:014: `my_append_func'/2.
singleton_test.m:014: The variables with unbound types were:
singleton_test.m:014: `L1',
singleton_test.m:014: `L2'.
singleton_test.m:014: Their types will be implicitly set to the builtin type
singleton_test.m:014: `void'.
singleton_test.m:038: In clause for predicate `my_append'/3:
singleton_test.m:038: warning: variable `L2' occurs only once in this scope.
singleton_test.m:038: (Did you mean `L' or `L1'?)
singleton_test.m:042: In clause for function `my_append_func'/2:
singleton_test.m:042: warning: variable `L1' occurs only once in this scope.
singleton_test.m:042: (Did you mean `L' or `L2'?)
singleton_test.m:042: In clause for function `my_append_func'/2:
singleton_test.m:042: warning: variable `L2' occurs only once in this scope.
singleton_test.m:042: (Did you mean `L' or `L1'?)
singleton_test.m:043: In clause for function `my_append_func'/2:
singleton_test.m:043: warning: variable `T' occurs only once in this scope.
singleton_test.m:045: In clause for predicate `test_head'/6:
singleton_test.m:045: warning: variable `_D' occurs more than once in this
singleton_test.m:045: scope.
singleton_test.m:045: In clause for predicate `test_head'/6:
singleton_test.m:045: warning: variables `A' and `B' occur only once in this
singleton_test.m:045: scope.
singleton_test.m:049: In the C foreign_proc for predicate `my_c_pred'/3:
singleton_test.m:049: warning: variable `Y' does not occur in the C code.
singleton_test.m:055: In the C# foreign_proc for predicate `my_c_pred'/3:
singleton_test.m:055: warning: variable `Y' does not occur in the C# code.
singleton_test.m:061: In the Java foreign_proc for predicate `my_c_pred'/3:
singleton_test.m:061: warning: variable `Y' does not occur in the Java code.
singleton_test.m:070: In the C foreign_proc for function `my_c_func'/2:
singleton_test.m:070: warning: variable `X' does not occur in the C code.
singleton_test.m:076: In the C# foreign_proc for function `my_c_func'/2:
singleton_test.m:076: warning: variable `X' does not occur in the C# code.
singleton_test.m:082: In the Java foreign_proc for function `my_c_func'/2:
singleton_test.m:082: warning: variable `X' does not occur in the Java code.
singleton_test.m:091: In the C foreign_proc for predicate `c_hello_world'/3:
singleton_test.m:091: warning: variable `Msg' does not occur in the C code.
singleton_test.m:098: In the C# foreign_proc for predicate `c_hello_world'/3:
singleton_test.m:098: warning: variable `Msg' does not occur in the C# code.
singleton_test.m:105: In the Java foreign_proc for predicate `c_hello_world'/3:
singleton_test.m:105: warning: variable `Msg' does not occur in the Java
singleton_test.m:105: code.
For more information, recompile with `-E'.