[m-rev.] diff: enable --warn-susppicious-foreign-code
Julien Fischer
jfischer at opturion.com
Mon Oct 8 15:21:48 AEDT 2018
I added the new option early last week; if anyone is not up-to-date let
me know and I'll hold off committing this.
-----------------------------------
Enable --warn-suspicious-foreign-code.
Enable the recently added --warn-suspicious-foreign-code warning by default for
the Mercury system.
configure.ac:
Check that --warn-suspicious-foreign-code is supported by the bootstrap
compiler
compiler/COMP_FLAGS.in:
compiler/DEEP_FLAGS.in:
compiler/LIB_FLAGS.in:
compiler/MDBCOMP_FLAGS.in:
compiler/SLICE_FLAGS.in:
compiler/SSDB_FLAGS.in:
compiler/PROF_FLAGS.in:
Enable the option.
Julien.
diff --git a/compiler/COMP_FLAGS.in b/compiler/COMP_FLAGS.in
index 9a0f003..534959d 100644
--- a/compiler/COMP_FLAGS.in
+++ b/compiler/COMP_FLAGS.in
@@ -4,6 +4,7 @@
--warn-unknown-format-calls
--warn-unused-imports
--warn-insts-with-functors-without-type
+--warn-suspicious-foreign-code
--halt-at-warn
--no-warn-inferred-erroneous
--no-mercury-stdlib-dir
diff --git a/configure.ac b/configure.ac
index 7a35534..da57c81 100644
--- a/configure.ac
+++ b/configure.ac
@@ -559,7 +559,7 @@ EOF
--halt-at-warn \
$link_static_opt conftest \
--erlang-native-code \
- --warn-insts-with-functors-without-type \
+ --warn-suspicious-foreign-code \
--no-no-reserved-addrs \
--no-ssdb \
</dev/null >&AC_FD_CC 2>&1 &&
diff --git a/deep_profiler/DEEP_FLAGS.in b/deep_profiler/DEEP_FLAGS.in
index 29467f8..cb4da7c 100644
--- a/deep_profiler/DEEP_FLAGS.in
+++ b/deep_profiler/DEEP_FLAGS.in
@@ -5,6 +5,7 @@
--warn-unused-imports
--warn-inconsistent-pred-order-clauses
--warn-insts-with-functors-without-type
+--warn-suspicious-foreign-code
--halt-at-warn
--no-warn-inferred-erroneous
--no-mercury-stdlib-dir
diff --git a/library/LIB_FLAGS.in b/library/LIB_FLAGS.in
index f23e8f8..2960f99 100644
--- a/library/LIB_FLAGS.in
+++ b/library/LIB_FLAGS.in
@@ -6,6 +6,7 @@
--warn-unknown-format-calls
--warn-unused-imports
--warn-insts-with-functors-without-type
+--warn-suspicious-foreign-code
--halt-at-warn
--no-warn-inferred-erroneous
--no-mercury-stdlib-dir
diff --git a/mdbcomp/MDBCOMP_FLAGS.in b/mdbcomp/MDBCOMP_FLAGS.in
index 90bf163..85d4647 100644
--- a/mdbcomp/MDBCOMP_FLAGS.in
+++ b/mdbcomp/MDBCOMP_FLAGS.in
@@ -5,6 +5,7 @@
--warn-unused-imports
--warn-inconsistent-pred-order-clauses
--warn-insts-with-functors-without-type
+--warn-suspicious-foreign-code
--halt-at-warn
--no-warn-inferred-erroneous
--no-mercury-stdlib-dir
diff --git a/profiler/PROF_FLAGS.in b/profiler/PROF_FLAGS.in
index 114de38..83ffd1f 100644
--- a/profiler/PROF_FLAGS.in
+++ b/profiler/PROF_FLAGS.in
@@ -4,6 +4,7 @@
--warn-unknown-format-calls
--warn-unused-imports
--warn-insts-with-functors-without-type
+--warn-suspicious-foreign-code
--halt-at-warn
--no-warn-inferred-erroneous
--no-mercury-stdlib-dir
diff --git a/slice/SLICE_FLAGS.in b/slice/SLICE_FLAGS.in
index 2cf1551..2f02094 100644
--- a/slice/SLICE_FLAGS.in
+++ b/slice/SLICE_FLAGS.in
@@ -4,6 +4,7 @@
--warn-unknown-format-calls
--warn-unused-imports
--warn-insts-with-functors-without-type
+--warn-suspicious-foreign-code
--halt-at-warn
--no-warn-inferred-erroneous
--no-mercury-stdlib-dir
diff --git a/ssdb/SSDB_FLAGS.in b/ssdb/SSDB_FLAGS.in
index 6d6d807..b5e958d 100644
--- a/ssdb/SSDB_FLAGS.in
+++ b/ssdb/SSDB_FLAGS.in
@@ -4,6 +4,7 @@
--warn-unknown-format-calls
--warn-unused-imports
--warn-insts-with-functors-without-type
+--warn-suspicious-foreign-code
--halt-at-warn
--no-warn-inferred-erroneous
--no-mercury-stdlib-dir
More information about the reviews
mailing list