Fix using a c++23 extension with labels at the end of a block and fix writable strings warnings.

This commit is contained in:
Sven Balzer 2025-12-05 21:51:13 +01:00 committed by Ammerhai
parent 2e95908242
commit 793b69d9d9

View File

@ -69,10 +69,10 @@ void init(){
year = get_current_year(); year = get_current_year();
} }
static char* savefile_path = "./calendar"; static const char *savefile_path = "./calendar";
static char* wiki_url = "https://gitea.ammerhai.com/Ammerhai/work-calendar/wiki"; static const char *wiki_url = "https://gitea.ammerhai.com/Ammerhai/work-calendar/wiki";
static const char* month_names[] = {"Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"}; static const char *month_names[] = {"Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"};
typedef struct Category { typedef struct Category {
bool editing; bool editing;
@ -426,7 +426,7 @@ void per_frame(){
}; };
num_categorized_days++; num_categorized_days++;
} }
color_changed: color_changed:;
} }
ImGui::EndTable(); ImGui::EndTable();