bug-ncurses
[Top][All Lists]
Advanced

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

warning: overflow in implicit constant conversion shown while building k


From: Johannes Hoffmann
Subject: warning: overflow in implicit constant conversion shown while building kakoune on ubuntu 18.04
Date: Wed, 10 Oct 2018 08:22:40 +0200

here is the output:

g++ -DKAK_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/usr/include/ncursesw -pedantic -std=gnu++14 -g -Wall -Wextra -Wno-unused-parameter -Wno-reorder -Wno-sign-compare -Wno-address -Wno-noexcept-type -Wno-unknown-attributes -Wno-unknown-warning-option -MD -MP -MF .ncurses_ui.debug.d -c -o .ncurses_ui.debug.o ncurses_ui.cc

In file included from ncurses_ui.cc:14:0:
ncurses_ui.cc: In member function ‘void Kakoune::NCursesUI::set_face(Kakoune::NCursesWin*, Kakoune::Face, const Kakoune::Face&)’:
/usr/include/ncursesw/ncurses.h:1097:63: warning: overflow in implicit constant conversion [-Woverflow]
#define NCURSES_BITS(mask,shift) (NCURSES_CAST(chtype,(mask)) << ((shift) + NCURSES_ATTR_SHIFT))
^
/usr/include/ncursesw/ncurses.h:1120:18: note: in expansion of macro ‘NCURSES_BITS’
#define A_ITALIC NCURSES_BITS(1UL,23) /* ncurses extension */
^~~~~~~~~~~~
ncurses_ui.cc:217:27: note: in expansion of macro ‘A_ITALIC’
set_attribute(window, A_ITALIC, face.attributes & Attribute::Italic);
^~~~~~~~
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
cc1plus: warning: unrecognized command line option ‘-Wno-unknown-attributes’

g++ -DKAK_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/usr/include/ncursesw -pedantic -std=gnu++14 -g -Wall -Wextra -Wno-unused-parameter -Wno-reorder -Wno-sign-compare -Wno-address -Wno-noexcept-type -Wno-unknown-attributes -Wno-unknown-warning-option -MD -MP -MF .normal.debug.d -c -o .normal.debug.o normal.cc

 

hope this is of use to you

 

greetings


reply via email to

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