octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55741] build with '-Woverloaded-virtual' emit


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #55741] build with '-Woverloaded-virtual' emits many warnings indicating problems
Date: Thu, 14 Mar 2019 06:02:26 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36

Follow-up Comment #5, bug #55741 (project octave):

For some reason, I'm always seeing these warnings when building from default.
It looks like my build is using -Wall by default. Anybody know why this would
be, if -Wall/-Woverloaded-virtual isn't supposed to be the default?

This is the configure I'm using:


../../octave/configure \
  --prefix=/tmp/test-octave \
  --without-x \
  --disable-no-undefined \
  --disable-docs \
  --without-fltk \
  --with-qt=5 \
  --with-hdf5-includedir=$brew_opt/hdf5/include \
  --with-hdf5-libdir=$brew_opt/hdf5/lib \
  --with-blas="-L${brew_opt}/veclibfort/lib -lvecLibFort" \
  | tee config.out


And in the generated Makefile, I see this:


WARN_CFLAGS =  -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes
-Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual
WARN_CXXFLAGS =  -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith
-Wwrite-strings -Wcast-align -Wcast-qual


This is on macOS 10.14.3.

For some reason, I don't see these warnings when building using a Homebrew
formula, even though it uses a similar configure:


./configure
--prefix=/usr/local/Cellar/octave-default/default
--disable-dependency-tracking
--disable-silent-rules
--enable-link-all-dependencies
--enable-shared
--disable-static
--without-fltk
--with-hdf5-includedir=/usr/local/opt/hdf5/include
--with-hdf5-libdir=/usr/local/opt/hdf5/lib
--with-x=no
--with-blas=-L/usr/local/opt/veclibfort/lib -lvecLibFort
--with-portaudio
--with-sndfile
--with-qt=5



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55741>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]