Skip to content

Commit 273c703

Browse files
Ramsay Jonesgitster
authored andcommitted
environment.c: Fix an sparse "symbol not declared" warning
In particular, sparse issues the following warning: environment.c:62:5: warning: symbol 'merge_log_config' was not \ declared. Should it be static? In order to supress the warning, we include the "fmt-merge-msg.h" header file, since it contains an appropriate extern declaration for the 'merge_log_config' variable. Signed-off-by: Ramsay Jones <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 22a8699 commit 273c703

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

environment.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
#include "cache.h"
1111
#include "refs.h"
12+
#include "fmt-merge-msg.h"
1213

1314
char git_default_email[MAX_GITNAME];
1415
char git_default_name[MAX_GITNAME];

0 commit comments

Comments
 (0)