octave-maintainers
[Top][All Lists]
Advanced

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

oct-stream.cc:3495:42: note: did you mean to use logical not (‘!’)?


From: Dmitri A. Sergatskov
Subject: oct-stream.cc:3495:42: note: did you mean to use logical not (‘!’)?
Date: Mon, 24 Jul 2017 12:38:55 -0500

One of the gcc7 warnings:

/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../src  -Iliboctave -I../src/liboctave -I../src/liboctave/array -Iliboctave/numeric -I../src/liboctave/numeric -Iliboctave/operators -I../src/liboctave/operators -I../src/liboctave/system -I../src/liboctave/util -I../src/libinterp/octave-value -Ilibinterp -I../src/libinterp -I../src/libinterp/operators -Ilibinterp/parse-tree -I../src/libinterp/parse-tree -Ilibinterp/corefcn -I../src/libinterp/corefcn -I../src/liboctave/wrappers  -I/usr/include/GraphicsMagick   -I/usr/include/freetype2 -I/usr/include/libpng16  -I/usr/include/freetype2 -I/usr/include/libpng16      -fPIC -pthread -fopenmp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual  -g -O2 -MT libinterp/corefcn/libinterp_corefcn_libcorefcn_la-pager.lo -MD -MP -MF libinterp/corefcn/.deps/libinterp_corefcn_libcorefcn_la-pager.Tpo -c -o libinterp/corefcn/libinterp_corefcn_libcorefcn_la-pager.lo `test -f 'libinterp/corefcn/pager.cc' || echo '../src/'`libinterp/corefcn/pager.cc
../src/libinterp/corefcn/oct-stream.cc: In member function ‘int octave::textscan::read_format_once(octave::delimited_stream&, octave::textscan_format_list&, std::__cxx11::list<octave_value>&, Array<long int>, int&)’:
../src/libinterp/corefcn/oct-stream.cc:3495:42: warning: ‘~’ on an _expression_ of type bool [-Wbool-operation]
             if (! is.eof () && ~is_delim (is.peek ()))
                                 ~~~~~~~~~^~~~~~~~~~~~
../src/libinterp/corefcn/oct-stream.cc:3495:42: note: did you mean to use logical not (‘!’)?

Not sure how valid or serious it is...

Dmitri.
--


reply via email to

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