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

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

[Octave-bug-tracker] [bug #49055] Wcast-align warnings on certain non-x8


From: CH
Subject: [Octave-bug-tracker] [bug #49055] Wcast-align warnings on certain non-x86 architectures
Date: Wed, 29 Mar 2017 07:33:31 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #3, bug #49055 (project octave):

Here is a diff (against 4.2.1, NOT the current head) for
liboctave/util/oct-locbuf.cc with a minimal implementation of the previously
described method 2 (using malloc instead of new). This will not fix the
emitted warning itself but the underlying problem. If included the
SPECIALIZE_POD_BUFFER section in oct-locbuf.h could be enclosed (with effect
at least for gcc) by:


#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align"

#pragma GCC diagnostic pop


Other compilers (should) have something similar.


(file #40191)
    _______________________________________________________

Additional Item Attachment:

File name: oct-locbuf.cc.diff             Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49055>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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