* [devel] warnings being treated as errors
@ 2010-09-02 0:24 Dmitriy Kulik
2010-09-02 5:25 ` Andrey Rahmatullin
0 siblings, 1 reply; 2+ messages in thread
From: Dmitriy Kulik @ 2010-09-02 0:24 UTC (permalink / raw)
To: ALT Linux Team development discussions
cc1plus: warnings being treated as errors
/usr/include/qt4/QtCore/qstring.h: In function 'QDateTime
Jabber::stamp2date(const std::string&)':
/usr/include/qt4/QtCore/qstring.h:701: error: assuming signed overflow
does not occur when assuming that (X - c) > X is always false
Я вот понимаю что это не критично, как обьяснить компилятору?
со всего что присутствует:
%define cmake_flags -DPREFIX=%prefix -DCMAKE_INSTALL_PREFIX=%prefix
%build
CFLAGS="%optflags" \
CXXFLAGS="%optflags" \
cmake %cmake_flags .
%make_build
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [devel] warnings being treated as errors
2010-09-02 0:24 [devel] warnings being treated as errors Dmitriy Kulik
@ 2010-09-02 5:25 ` Andrey Rahmatullin
0 siblings, 0 replies; 2+ messages in thread
From: Andrey Rahmatullin @ 2010-09-02 5:25 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 718 bytes --]
On Thu, Sep 02, 2010 at 03:24:36AM +0300, Dmitriy Kulik wrote:
> cc1plus: warnings being treated as errors
> /usr/include/qt4/QtCore/qstring.h: In function 'QDateTime
> Jabber::stamp2date(const std::string&)':
> /usr/include/qt4/QtCore/qstring.h:701: error: assuming signed overflow
> does not occur when assuming that (X - c) > X is always false
>
> Я вот понимаю что это не критично,
А я - нет.
> как обьяснить компилятору?
Выковырять -Werror из CMakeLists либо попробовать
%add_optflags -fnostrict-overflow
--
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(6):
<hiddenman> ya-legion: а что нового в ff3.1 полезного?
<ya-legion> hiddenman: для тебя в нём только новые сегфолты
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-02 5:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-02 0:24 [devel] warnings being treated as errors Dmitriy Kulik
2010-09-02 5:25 ` Andrey Rahmatullin
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git