Add stricter warnings wrt prototypes.
And add the missing static's it found. Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
5798ef0594
commit
1bdf22f631
|
@ -25,7 +25,8 @@ add_definitions(-std=gnu99 -ggdb3 -fno-strict-aliasing -Wall -Wextra
|
||||||
-Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings
|
-Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings
|
||||||
-Wsign-compare -Wunused -Wno-unused-parameter -Wuninitialized -Winit-self
|
-Wsign-compare -Wunused -Wno-unused-parameter -Wuninitialized -Winit-self
|
||||||
-Wpointer-arith -Wredundant-decls -Wformat-nonliteral
|
-Wpointer-arith -Wredundant-decls -Wformat-nonliteral
|
||||||
-Wno-format-zero-length -Wmissing-format-attribute)
|
-Wno-format-zero-length -Wmissing-format-attribute -Wmissing-prototypes
|
||||||
|
-Wstrict-prototypes)
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# {{{ Find external utilities
|
# {{{ Find external utilities
|
||||||
|
|
|
@ -407,7 +407,7 @@ progressbar_draw(draw_context_t *ctx,
|
||||||
* \lparam A bar name.
|
* \lparam A bar name.
|
||||||
* \lparam A table with keys as properties names.
|
* \lparam A table with keys as properties names.
|
||||||
*/
|
*/
|
||||||
int
|
static int
|
||||||
luaA_progressbar_bar_properties_set(lua_State *L)
|
luaA_progressbar_bar_properties_set(lua_State *L)
|
||||||
{
|
{
|
||||||
widget_t **widget = luaA_checkudata(L, 1, "widget");
|
widget_t **widget = luaA_checkudata(L, 1, "widget");
|
||||||
|
@ -492,7 +492,7 @@ luaA_progressbar_bar_properties_set(lua_State *L)
|
||||||
* \lparam A bar name.
|
* \lparam A bar name.
|
||||||
* \lparam A data value.
|
* \lparam A data value.
|
||||||
*/
|
*/
|
||||||
int
|
static int
|
||||||
luaA_progressbar_bar_data_add(lua_State *L)
|
luaA_progressbar_bar_data_add(lua_State *L)
|
||||||
{
|
{
|
||||||
widget_t **widget = luaA_checkudata(L, 1, "widget");
|
widget_t **widget = luaA_checkudata(L, 1, "widget");
|
||||||
|
|
|
@ -293,7 +293,7 @@ taglist_button_press(widget_node_t *w,
|
||||||
* \param L The Lua VM state.
|
* \param L The Lua VM state.
|
||||||
* \return The number of elements pushed on stack.
|
* \return The number of elements pushed on stack.
|
||||||
*/
|
*/
|
||||||
int
|
static int
|
||||||
luaA_taglist_index(lua_State *L)
|
luaA_taglist_index(lua_State *L)
|
||||||
{
|
{
|
||||||
size_t len;
|
size_t len;
|
||||||
|
@ -324,7 +324,7 @@ luaA_taglist_index(lua_State *L)
|
||||||
* \param L The Lua VM state.
|
* \param L The Lua VM state.
|
||||||
* \return The number of elements pushed on stack.
|
* \return The number of elements pushed on stack.
|
||||||
*/
|
*/
|
||||||
int
|
static int
|
||||||
luaA_taglist_newindex(lua_State *L)
|
luaA_taglist_newindex(lua_State *L)
|
||||||
{
|
{
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
Loading…
Reference in New Issue