uWSGI Ret Variable Error

Hello Everyone,

If you got this error during installation of uwsgi

uwsgi.c:2763:6: error: variable ret set but not used [-Werror=unused-but-set-variable]

then you got a problem with your GCC.

GCC 4.6 cause this error so to fix it you need to downgrade it.

Just use apt-get remove gcc (not necessary actually but it is fun lol)

then use apt-get install gcc-4.4 and g++-4.4

check your /usr/bin directory if there is gcc and g++ linked files
remove them then use this command to create new links

ln -s /usr/bin/gcc-4.4 /usr/bin/gcc
ln -s /usr/bin/g++-4.4 /usr/bin/g++

check their version

gcc -v
g++ -v

if it is not 4.6 then its good to go.
go directory of the uwsgi source files
and

make -f Makefile

it should work now.