antirez/lua-msgpack — Issue #6: warning: this decimal constant is unsigned only in ISO C90
Author: agladysh
Created: 2012-02-20 14:09:30+00:00
State: open

$ sudo luarocks make rockspec/lua-msgpack-0.1-1.rockspec
gcc -O2 -fPIC -I/usr/include/lua5.1 -c lua_msgpack.c -o lua_msgpack.o
lua_msgpack.c: In function ‘mp_encode_int’:
lua_msgpack.c:230:9: warning: this decimal constant is unsigned only in ISO C90
gcc -shared -o msgpack.so -L/usr/local/lib lua_msgpack.o
Updating manifest for /usr/local/lib/luarocks/rocks

Note that it is a good practice to write Lua modules that they build cleanly with C89, C99 *and* C++98.

If a module is not buildable as C++98 code, it is a good idea to explicitly mark it as such (for example with #error in code). It is not uncommon to embed Lua into C++ code (not that I endorse this questionable practice), and this would require Lua itself and all modules to be built as C++.