From 64af7caae5675de43be2bfbd083c528217a5e4f8 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 30 May 2026 20:08:31 +0200 Subject: [PATCH] Updated to nixos 26.05 Change array initializers to shut up -Wno-unterminated-string-initialization --- ais_charset.c | 7 ++++++- flake.lock | 8 ++++---- flake.nix | 2 +- interactive.c | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ais_charset.c b/ais_charset.c index a487e3c..e06badc 100644 --- a/ais_charset.c +++ b/ais_charset.c @@ -1,3 +1,8 @@ #include "ais_charset.h" -char ais_charset[64] = "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ !\"#$%&'()*+,-./0123456789:;<=>?"; +char ais_charset[64] = {'@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', + 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', + 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', ' ', + '!', '\"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', + ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', + '7', '8', '9', ':', ';', '<', '=', '>', '?'}; diff --git a/flake.lock b/flake.lock index 462bbd2..b8670cc 100644 --- a/flake.lock +++ b/flake.lock @@ -2,16 +2,16 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1765311797, - "narHash": "sha256-mSD5Ob7a+T2RNjvPvOA1dkJHGVrNVl8ZOrAwBjKBDQo=", + "lastModified": 1779971959, + "narHash": "sha256-R5nauXyqyfRUFiZycFFZdkF7wl6eaUpPLst35+2nJQY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "09eb77e94fa25202af8f3e81ddc7353d9970ac1b", + "rev": "ec942ba042dad5ef097e2ef3a3effc034241f011", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-25.11", + "ref": "nixos-26.05", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index 5ee937a..2bceace 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,7 @@ { description = "A flake for dump1090 with DL0XK patches."; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05"; }; diff --git a/interactive.c b/interactive.c index 580a5d8..2a7f84b 100644 --- a/interactive.c +++ b/interactive.c @@ -100,7 +100,7 @@ void interactiveShowData(void) { static uint64_t next_update; uint64_t now = mstime(); char progress; - char spinner[4] = "|/-\\"; + char spinner[4] = {'|', '/', '-', '\\'}; // Refresh screen every (MODES_INTERACTIVE_REFRESH_TIME) miliseconde if (now < next_update)