diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-10-27 11:53:03 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-10-27 11:53:03 +0100 |
commit | 38694ea5205004fa4a5493fe02c3a31fb6b2f532 (patch) | |
tree | d83af60470de47c921236e3b57fa4d76ed7b24d0 | |
parent | 0304e4fcee0ceb222485e2eca32a1a917ebac964 (diff) | |
download | hex-38694ea5205004fa4a5493fe02c3a31fb6b2f532.tar.gz hex-38694ea5205004fa4a5493fe02c3a31fb6b2f532.tar.xz hex-38694ea5205004fa4a5493fe02c3a31fb6b2f532.zip |
Bump liberty and termo
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | hex.c | 7 | ||||
m--------- | liberty | 0 | ||||
m--------- | termo | 0 |
4 files changed, 4 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b9b72e5..f6b7c71 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 2.8.5) # Moar warnings if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUCC) - set (wdisabled "-Wno-unused-function -Wno-implicit-fallthrough") + set (wdisabled "-Wno-unused-function") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wall -Wextra ${wdisabled}") endif () @@ -339,9 +339,9 @@ app_free_context (void) free (g_ctx.marks_by_offset); free (g_ctx.offset_entries); - free (g_ctx.message); + cstr_set (&g_ctx.message, NULL); - free (g_ctx.filename); + cstr_set (&g_ctx.filename, NULL); free (g_ctx.data); if (g_ctx.tk) @@ -1792,8 +1792,7 @@ app_log_handler (void *user_data, const char *quote, const char *fmt, fprintf (stderr, "%s\n", message.str); else { - free (g_ctx.message); - g_ctx.message = xstrdup (message.str); + cstr_set (&g_ctx.message, xstrdup (message.str)); g_ctx.message_attr = (intptr_t) user_data; app_invalidate (); } diff --git a/liberty b/liberty -Subproject 1a76b2032e6d18d9f95d9d0bb98edc26023c861 +Subproject 8822d06091942454324936329bfade6a47444d7 diff --git a/termo b/termo -Subproject 8c4e867760eb20e3cdf997a301c8f8672c01e38 +Subproject 065cd3b3e1781ebfddbb272b568918c60c8962c |