build: Add -Wclobbered to detect problems with longjmp
[project/uci.git] / list.c
diff --git a/list.c b/list.c
index 78efbafe1c06572b3ae46e5e72457d659f0ea52b..41a87028eefc267b3b3b0ea2cfe61a482df6b693 100644 (file)
--- a/list.c
+++ b/list.c
@@ -623,8 +623,8 @@ int uci_add_list(struct uci_context *ctx, struct uci_ptr *ptr)
 {
        /* NB: UCI_INTERNAL use means without delta tracking */
        bool internal = ctx && ctx->internal;
-       struct uci_option *prev = NULL;
-       const char *value2 = NULL;
+       struct uci_option *volatile prev = NULL;
+       const char *volatile value2 = NULL;
 
        UCI_HANDLE_ERR(ctx);