Skip to content

Commit 3e179ba

Browse files
committed
hwloc/external: Suppress missing-include-dirs warning
If OMPI is configured with `--with-hwloc=external` or `--with-hwloc=DIR` and gfortran is used, I see a lot of warnings when compiling files under the `ompi/mpi/fortran` directory. ``` f951: Warning: Nonexistent include directory 'BUILD_DIR/opal/mca/hwloc/external/hwloc/include' [-Wmissing-include-dirs] ``` There is no such `include` directory in the source tree and `configure`- created tree. I think these lines in the `configure.m4` file are wrongly copied from that for the embedded `hwlocXXX` component in the past. The `-Wmissing-include-dirs` option is enabled in gfortran by default but it is not enabled by default (or even with `-Wall`) in gcc and g++. Signed-off-by: KAWASHIMA Takahiro <t-kawashima@jp.fujitsu.com>
1 parent e77e31b commit 3e179ba

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

opal/mca/hwloc/external/configure.m4

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,9 @@ AC_DEFUN([MCA_opal_hwloc_external_POST_CONFIG],[
4545

4646
# Add some stuff to CPPFLAGS so that the rest of the source
4747
# tree can be built
48-
file=$opal_hwloc_external_basedir/hwloc
4948
CPPFLAGS="$CPPFLAGS $opal_hwloc_external_CPPFLAGS"
5049
LDFLAGS="$LDFLAGS $opal_hwloc_external_LDFLAGS"
5150
LIBS="$LIBS $opal_hwloc_external_LIBS"
52-
AS_IF([test "$OPAL_TOP_BUILDDIR" != "$OPAL_TOP_SRCDIR"],
53-
[CPPFLAGS="$CPPFLAGS -I$OPAL_TOP_BUILDDIR/$file/include"])
54-
unset file
5551

5652
# We have to do some extra indirection to get the
5753
# OPAL_HWLOC_WANT_VERBS_HELPER to work. First, the

0 commit comments

Comments
 (0)