BelledonneCommunications / flexisip

Linphone.org mirror for flexisip (git://git.linphone.org/flexisip.git)
http://flexisip.org
GNU Affero General Public License v3.0
148 stars 71 forks source link

Fix for eventlogs.cc and presence-server.cc errors if Soci disabled #112

Open jamesshuriff opened 3 years ago

jamesshuriff commented 3 years ago

In src/eventlogs/eventlogs.cc there is an #if ENABLE_SOCI block that contains the closing bracket for "namespace flexisip". If Soci is not enabled the closing bracket will not be parsed and the compiler will raise an error.

In src/presence/presence-server.cc there is a variable "const string &connectionString" that is not used if Soci is disabled, raising -Werror=unused-variable.

I have attached a patch that will fix these issues.

flexisip.patch.txt

jamesshuriff commented 3 years ago

Please respond.