cc = meson.get_compiler('c')
-add_project_arguments(cc.get_supported_arguments(
- [
- '-Wno-unused-parameter',
- '-Wundef',
- ]),
- language: 'c',
-)
+add_project_arguments(cc.get_supported_arguments([
+ '-Wundef',
+ '-Wlogical-op',
+ '-Wmissing-include-dirs',
+ '-Wold-style-definition',
+ '-Wpointer-arith',
+ '-Winit-self',
+ '-Wstrict-prototypes',
+ '-Wimplicit-fallthrough=2',
+ '-Wendif-labels',
+ '-Wstrict-aliasing=2',
+ '-Woverflow',
+ '-Wmissing-prototypes',
+ '-Walloca',
+ '-Wunused-macros',
+
+ '-Wno-unused-parameter',
+]), language: 'c')
version='"@0@"'.format(meson.project_version())
git = find_program('git', native: true, required: false)
}
}
-char *
+static char *
find_dir(struct ctx *ctx)
{
char *debug = getenv("LABWC_DEBUG_DIR_CONFIG_AND_THEME");
#include <assert.h>
#include <wlr/types/wlr_scene.h>
+#include "common/scene-helpers.h"
struct wlr_scene_rect *
lab_wlr_scene_get_rect(struct wlr_scene_node *node)
#include <ctype.h>
#include <stdio.h>
#include <string.h>
+#include "common/string-helpers.h"
static void
rtrim(char **s)
}
static void
-rcxml_init()
+rcxml_init(void)
{
static bool has_run;
#include "common/mem.h"
#include "common/spawn.h"
#include "common/string-helpers.h"
+#include "config/session.h"
static bool
isfile(const char *path)
free(value.buf);
}
-void
+static void
read_environment_file(const char *filename)
{
char *line = NULL;
/*cursor_has_moved*/ false);
}
-void
+static void
handle_constraint_commit(struct wl_listener *listener, void *data)
{
struct seat *seat = wl_container_of(listener, seat, constraint_commit);
assert(constraint->surface = data);
}
-void
+static void
destroy_constraint(struct wl_listener *listener, void *data)
{
struct constraint *constraint = wl_container_of(listener, constraint,
process_cursor_motion(seat->server, event->time_msec);
}
-void
+static void
cursor_motion_absolute(struct wl_listener *listener, void *data)
{
/*
}
}
-void
+static void
cursor_button(struct wl_listener *listener, void *data)
{
/*
return 0;
}
-bool
+static bool
handle_cursor_axis(struct server *server, struct cursor_context *ctx,
struct wlr_pointer_axis_event *event)
{
return handled;
}
-void
+static void
cursor_axis(struct wl_listener *listener, void *data)
{
/*
}
}
-void
+static void
cursor_frame(struct wl_listener *listener, void *data)
{
/*
#include <wlr/types/wlr_layer_shell_v1.h>
#include <wlr/types/wlr_scene.h>
#include "common/scene-helpers.h"
+#include "debug.h"
#include "labwc.h"
#include "node.h"
#include "ssd.h"
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
+#include "key-state.h"
#define MAX_PRESSED_KEYS (16)
// SPDX-License-Identifier: GPL-2.0-only
#include "config/rcxml.h"
#include "labwc.h"
+#include "resistance.h"
#include "view.h"
struct edges {
{
const struct wl_interface *iface = wl_global_get_interface(global);
struct server *server = (struct server *)data;
+ /* Silence unused var compiler warnings */
(void)iface; (void)server;
#if HAVE_XWAYLAND
}
static void
-get_identifier_token()
+get_identifier_token(void)
{
struct token *token = tokens + nr_tokens - 1;
token->name[token->pos] = current_buffer_position[0];
}
static void
-get_special_char_token()
+get_special_char_token(void)
{
struct token *token = tokens + nr_tokens - 1;
token->name[0] = current_buffer_position[0];