Commit 069f3cb2 authored by Micha Müller's avatar Micha Müller
Browse files

Fix warning when compiling CA with gcc9.1

parent 2c6b0821
......@@ -559,7 +559,7 @@ int main(int argc, char* const argv[]) {
/*
* Start the HTTP Server for the REST API
*/
CARestAPI* httpsServer;
CARestAPI* httpsServer = nullptr;
if (restAPISettings.enabled) {
httpsServer = new CARestAPI(restAPISettings, &mySensorCache, analyticsController);
config.readRestAPIUsers(httpsServer);
......
......@@ -4,8 +4,7 @@ CXXFLAGS += -DBOOST_NETWORK_ENABLE_HTTPS \
-I../common/include \
-I$(DCDBDEPLOYPATH)/include
LIBS = -L../lib \
-L$(DCDBDEPLOYPATH)/lib/ \
LIBS = -L$(DCDBDEPLOYPATH)/lib/ \
-ldl \
-lmosquitto \
-lboost_system \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment