mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 09:31:59 +00:00
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:
parent
d6003e1991
commit
74a39e7ea8
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user