From 74a39e7ea86bfce6a24a506a2018b2c1779cf438 Mon Sep 17 00:00:00 2001 From: Phil Wise Date: Sat, 27 Jan 2018 13:05:42 +0100 Subject: [PATCH] Fix build on Ubuntu 16.04 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Ubuntu 16.04 I get the following compile error in release mode: ../../src/indexer.cc: In function ‘ClangStorageClass {anonymous}::GetStorageClass(CX_StorageClass)’: ../../src/indexer.cc:130:1: error: control reaches end of non-void function [-Werror=return-type] cc1plus: all warnings being treated as errors --- src/indexer.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/indexer.cc b/src/indexer.cc index e735ff6e..0c8a250a 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -126,6 +127,8 @@ ClangStorageClass GetStorageClass(CX_StorageClass storage) { return ClangStorageClass::SC_Auto; case CX_SC_Register: return ClangStorageClass::SC_Register; + default: + assert(0); } }