|
From: | CH |
Subject: | [Octave-bug-tracker] [bug #49055] Wcast-align Warning on compiling on ARM |
Date: | Sun, 11 Sep 2016 01:37:02 +0000 (UTC) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0 |
URL: <http://savannah.gnu.org/bugs/?49055> Summary: Wcast-align Warning on compiling on ARM Project: GNU Octave Submitted by: atcl Submitted on: Sun 11 Sep 2016 01:36:59 AM GMT Category: Libraries Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: 4.0.3 Operating System: GNU/Linux _______________________________________________________ Details: Building octave from source on an ARM(v7) platform results in frequent cast alignment warnings for many types, for example: ./util/oct-locbuf.h: In member function 'octave_local_buffer<double>::operator double*() const': ./util/oct-locbuf.h:120:51: warning: cast from 'char*' to 'double*' increases required alignment of target type [-Wcast-align] return reinterpret_cast<TYPE *> (this->data ()); \ ^ ./util/oct-locbuf.h:133:1: note: in expansion of macro 'SPECIALIZE_POD_BUFFER' SPECIALIZE_POD_BUFFER (double); May be this can be of help: http://stackoverflow.com/a/25795795 _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?49055> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |