summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQball Cow <qball@blame.services>2023-06-29 23:59:25 +0200
committerQball Cow <qball@blame.services>2023-06-29 23:59:25 +0200
commita5301b35ade1038f9f926dbfa02de94ba0773121 (patch)
tree6bbb6d3d9f5e2830b3b62b2356a11156e8957773
parent7814da7ee42ee7763cbced5ac1dc0f6f39369ab2 (diff)
Remove unused variable.
-rw-r--r--include/mode-private.h2
-rw-r--r--meson.build4
-rw-r--r--source/modes/dmenu.c3
-rw-r--r--source/view.c6
4 files changed, 6 insertions, 9 deletions
diff --git a/include/mode-private.h b/include/mode-private.h
index f7e13daa..56d4623d 100644
--- a/include/mode-private.h
+++ b/include/mode-private.h
@@ -45,6 +45,8 @@ typedef enum {
MODE_TYPE_SWITCHER = 0x1,
/** A mode that can be used to completer */
MODE_TYPE_COMPLETER = 0x2,
+ /** DMenu mode. */
+ MODE_TYPE_DMENU = 0x4,
} ModeType;
/**
diff --git a/meson.build b/meson.build
index 2d889503..8a9162bd 100644
--- a/meson.build
+++ b/meson.build
@@ -4,6 +4,7 @@ project('rofi', 'c',
license: [ 'MIT' ],
default_options: [
'c_std=c99',
+ 'warning_level=3'
],
)
@@ -21,8 +22,7 @@ flags = [
'-Winline',
'-Wunreachable-code',
'-Werror=missing-prototypes',
- '-Wno-inline', # A bit too noisy with Bison…
- '-Wextra'
+ '-Wno-inline' # A bit too noisy with Bison…
]
foreach f : flags
if c_compiler.has_argument(f)
diff --git a/source/modes/dmenu.c b/source/modes/dmenu.c
index 31b7c2dc..41841074 100644
--- a/source/modes/dmenu.c
+++ b/source/modes/dmenu.c
@@ -502,7 +502,8 @@ Mode dmenu_mode = {.name = "dmenu",
._get_message = dmenu_get_message,
.private_data = NULL,
.free = NULL,
- .display_name = "dmenu"};
+ .display_name = "dmenu",
+ .type = MODE_TYPE_DMENU};
static int dmenu_mode_init(Mode *sw) {
if (mode_get_private_data(sw) != NULL) {
diff --git a/source/view.c b/source/view.c
index 143b5af9..ecf095c6 100644
--- a/source/view.c
+++ b/source/view.c
@@ -267,12 +267,6 @@ void rofi_capture_screenshot(void) {
}
/**
- * Code used for benchmarking drawing the gui, this will keep updating the UI as
- * fast as possible.
- */
-gboolean do_bench = TRUE;
-
-/**
* Internal structure that hold benchmarking information.
*/
static struct {