Fix build on Ubuntu 16.04

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
This commit is contained in:
Phil Wise 2018-01-27 13:05:42 +01:00 committed by Jacob Dufault
parent d6003e1991
commit 74a39e7ea8

View File

@ -10,6 +10,7 @@
#include <loguru.hpp>
#include <algorithm>
#include <cassert>
#include <chrono>
#include <climits>
#include <iostream>
@ -126,6 +127,8 @@ ClangStorageClass GetStorageClass(CX_StorageClass storage) {
return ClangStorageClass::SC_Auto;
case CX_SC_Register:
return ClangStorageClass::SC_Register;
default:
assert(0);
}
}