mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-10 15:44:41 -05:00
Remove unused variable.
This commit is contained in:
parent
7814da7ee4
commit
a5301b35ad
4 changed files with 6 additions and 9 deletions
|
@ -45,6 +45,8 @@ typedef enum {
|
||||||
MODE_TYPE_SWITCHER = 0x1,
|
MODE_TYPE_SWITCHER = 0x1,
|
||||||
/** A mode that can be used to completer */
|
/** A mode that can be used to completer */
|
||||||
MODE_TYPE_COMPLETER = 0x2,
|
MODE_TYPE_COMPLETER = 0x2,
|
||||||
|
/** DMenu mode. */
|
||||||
|
MODE_TYPE_DMENU = 0x4,
|
||||||
} ModeType;
|
} ModeType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,6 +4,7 @@ project('rofi', 'c',
|
||||||
license: [ 'MIT' ],
|
license: [ 'MIT' ],
|
||||||
default_options: [
|
default_options: [
|
||||||
'c_std=c99',
|
'c_std=c99',
|
||||||
|
'warning_level=3'
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -21,8 +22,7 @@ flags = [
|
||||||
'-Winline',
|
'-Winline',
|
||||||
'-Wunreachable-code',
|
'-Wunreachable-code',
|
||||||
'-Werror=missing-prototypes',
|
'-Werror=missing-prototypes',
|
||||||
'-Wno-inline', # A bit too noisy with Bison…
|
'-Wno-inline' # A bit too noisy with Bison…
|
||||||
'-Wextra'
|
|
||||||
]
|
]
|
||||||
foreach f : flags
|
foreach f : flags
|
||||||
if c_compiler.has_argument(f)
|
if c_compiler.has_argument(f)
|
||||||
|
|
|
@ -502,7 +502,8 @@ Mode dmenu_mode = {.name = "dmenu",
|
||||||
._get_message = dmenu_get_message,
|
._get_message = dmenu_get_message,
|
||||||
.private_data = NULL,
|
.private_data = NULL,
|
||||||
.free = NULL,
|
.free = NULL,
|
||||||
.display_name = "dmenu"};
|
.display_name = "dmenu",
|
||||||
|
.type = MODE_TYPE_DMENU};
|
||||||
|
|
||||||
static int dmenu_mode_init(Mode *sw) {
|
static int dmenu_mode_init(Mode *sw) {
|
||||||
if (mode_get_private_data(sw) != NULL) {
|
if (mode_get_private_data(sw) != NULL) {
|
||||||
|
|
|
@ -266,12 +266,6 @@ void rofi_capture_screenshot(void) {
|
||||||
g_date_time_unref(now);
|
g_date_time_unref(now);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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.
|
* Internal structure that hold benchmarking information.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue