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:
Pierre Habouzit 2008-06-30 22:49:12 +02:00 committed by Julien Danjou
parent 5798ef0594
commit 1bdf22f631
3 changed files with 6 additions and 5 deletions

View File

@ -25,7 +25,8 @@ add_definitions(-std=gnu99 -ggdb3 -fno-strict-aliasing -Wall -Wextra
-Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings
-Wsign-compare -Wunused -Wno-unused-parameter -Wuninitialized -Winit-self
-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

View File

@ -407,7 +407,7 @@ progressbar_draw(draw_context_t *ctx,
* \lparam A bar name.
* \lparam A table with keys as properties names.
*/
int
static int
luaA_progressbar_bar_properties_set(lua_State *L)
{
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 data value.
*/
int
static int
luaA_progressbar_bar_data_add(lua_State *L)
{
widget_t **widget = luaA_checkudata(L, 1, "widget");

View File

@ -293,7 +293,7 @@ taglist_button_press(widget_node_t *w,
* \param L The Lua VM state.
* \return The number of elements pushed on stack.
*/
int
static int
luaA_taglist_index(lua_State *L)
{
size_t len;
@ -324,7 +324,7 @@ luaA_taglist_index(lua_State *L)
* \param L The Lua VM state.
* \return The number of elements pushed on stack.
*/
int
static int
luaA_taglist_newindex(lua_State *L)
{
size_t len;