summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2018-06-19 18:28:25 +0200
committerDebarshi Ray <debarshir@gnome.org>2018-06-19 18:47:00 +0200
commita13b07d346b280592510e7ee6af05bc602197691 (patch)
tree305966fdccd1f3d66300414552f9847c7072bce3
parent05c1c6dd46835580091a2750b19b05a1866a0d66 (diff)
downloadvte-wip/rishi/gcc-8.1.1.tar.gz
parser: Fix the build with GCC 8.1.1wip/rishi/gcc-8.1.1
Otherwise it fails with: vteseq.cc:47:1: error: declaration of 'void vte::parser::Sequence::print() const' has a different exception specifier vte::parser::Sequence::print() const ^~~ In file included from vteinternal.hh:30, from vteseq.cc:34: parser-glue.hh:83:14: note: from previous declaration 'void vte::parser::Sequence::print() const noexcept' void print() const noexcept; ^~~~~ ... and so on. Fixes GNOME/vte#5: https://gitlab.gnome.org/GNOME/vte/issues/5
-rw-r--r--src/vteseq.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vteseq.cc b/src/vteseq.cc
index ba97480c..98f71b87 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -44,7 +44,7 @@
using namespace std::literals;
void
-vte::parser::Sequence::print() const
+vte::parser::Sequence::print() const noexcept
{
#ifdef VTE_DEBUG
auto c = m_seq != nullptr ? terminator() : 0;
@@ -145,7 +145,7 @@ vte_unichar_strlen(gunichar const* c)
*/
char*
vte::parser::Sequence::ucs4_to_utf8(gunichar const* str,
- ssize_t len) const
+ ssize_t len) const noexcept
{
if (len < 0)
len = vte_unichar_strlen(str);
@@ -1406,7 +1406,7 @@ VteTerminalPrivate::set_color_index(vte::parser::Sequence const& seq,
int number,
int index,
int index_fallback,
- int osc)
+ int osc) noexcept
{
auto const str = *token;