mirror of
https://github.com/swaywm/sway.git
synced 2026-05-04 06:46:25 -04:00
Minor changes to build against json-c 0.13.x
I'm not convinced my change to CMakeLists is the correct way to squelch the json-c version error when building on a system with version numbers greater than 0.12.1. 0.13.x+ is supposed to be backwards compatible. Rest of the changes involve replacing int with size_t where necessary to suppress -Werror=sign-compare on gcc 8.
This commit is contained in:
parent
8e06985cc1
commit
0ed0c824e9
6 changed files with 8 additions and 8 deletions
|
|
@ -70,7 +70,7 @@ static void parse_json(struct bar *bar, const char *text) {
|
|||
|
||||
bar->status->block_line = create_list();
|
||||
|
||||
int i;
|
||||
size_t i;
|
||||
for (i = 0; i < json_object_array_length(results); ++i) {
|
||||
json_object *full_text, *short_text, *color, *min_width, *align, *urgent;
|
||||
json_object *name, *instance, *separator, *separator_block_width;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue