# produces false positives
# DEBUG_CPPFLAGS += -Wunreachable-code
# DEBUG_CPPFLAGS += -Wwrite-strings
-# invalid option for gcc-3.3.5
+# invalid option for gcc-3.3.3
# DEBUG_CPPFLAGS += -Wextra
+# DEBUG_CPPFLAGS += -Wold-style-definition
CPPFLAGS += -Os
CPPFLAGS += -Wall
CPPFLAGS += -Wmissing-format-attribute
CPPFLAGS += -Wunused-macros
CPPFLAGS += -Wshadow
+CPPFLAGS += -Wbad-function-cast
BINARIES = para_server para_client para_gui para_audioc para_recv \
para_filter para_write @extra_binaries@
{
static time_t startuptime;
time_t now;
+ double diff;
if (set_or_get == UPTIME_SET) {
time(&startuptime);
return 0;
}
time(&now);
- return (time_t) difftime(now, startuptime);
+ diff = difftime(now, startuptime);
+ return (time_t) diff;
}
/**
* This has to be called once during startup before any other function from
* grab_client.c may be used. It initializes \a inactive_grab_client_list.
*/
-void init_grabbing()
+void init_grabbing(void)
{
PARA_INFO_LOG("%s", "grab init\n");
INIT_LIST_HEAD(&inactive_grab_client_list);