]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
add void to log_ident_revert_to_default declaration 930/head
authorStuart Henderson <sthen@users.noreply.github.com>
Tue, 5 Sep 2023 14:28:06 +0000 (14:28 +0000)
committerGitHub <noreply@github.com>
Tue, 5 Sep 2023 14:28:06 +0000 (14:28 +0000)
Avoid warning from LLVM 16:

util_log.c:190:33: warning: a function declaration without a prototype is deprecated in all versions of C
[-Wstrict-prototypes]
void log_ident_revert_to_default()
                                ^
                                 void

util/log.c

index dfbb23349944c73680343103450dcf9f8f8905ec..a15ee920c0fb11330d25ae6f368dfb085c51ab25 100644 (file)
@@ -187,7 +187,7 @@ void log_ident_set_default(const char* id)
        default_ident = id;
 }
 
-void log_ident_revert_to_default()
+void log_ident_revert_to_default(void)
 {
        ident = default_ident;
 }