|
From: eric m. <mid...@gm...> - 2018-01-27 11:00:37
|
Hello,
Since I'm using a new version of the gnu compiler (g++ (Debian 6.3.0-18)
6.3.0 20170516) I'm getting these strange compiler errors related to the
LOKI_THREADS_ATOMIC_FUNCTIONS macro.
g++ -Wall -Werror -Wextra -fexceptions -ggdb -g3 -fPIC -std=gnu++14
-DLOKI_OBJECT_LEVEL_THREADING -I/home/eric/source/webserver/lib
-I/home/eric/source/generic/lib -I/home/eric/source/udev/lib
-I/usr/local/include/boost -I/usr/local/include/loki -I/usr/include
-I/home/eric/source/financedb/lib -I/usr/local/include/mariadb -c
/home/eric/source/webserver/lib/AppLib/Apps/AbstractApp.cpp -o
/home/eric/object/webserver/lib/AppLib/AbstractApp.o
In file included from /usr/include/loki/Singleton.h:22:0,
from
/home/eric/source/webserver/lib/ControllerLib/Controller.hpp:9,
from
/home/eric/source/webserver/lib/AppLib/Apps/AbstractApp.cpp:3:
/usr/include/loki/Threads.h: In static member function ‘static void
Loki::ObjectLevelLockable<Host, MutexPolicy>::AtomicAssign(volatile
IntType&, Loki::ObjectLevelLockable<Host, MutexPolicy>::IntType)’:
/usr/include/loki/Threads.h:505:9: error: return-statement with a value, in
function returning 'void' [-fpermissive]
LOKI_THREADS_ATOMIC_FUNCTIONS
There has been no change in my code since the time I used the previous
version of the compiler. Does anybody know what is causing these and why?
Kind regards
Eric
|