Skip to content

Commit 0f973e1

Browse files
committed
Add missing 'static' keyword
This fixes a compiler warning: globaloc.cpp:33:6: warning: no previous extern declaration for non-static variable 'global_crash_pixes' [-Wmissing-variable-declarations] Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent a71ad45 commit 0f973e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ccutil/globaloc.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// Size of thread-id array of pixes to keep in case of crash.
3131
const int kMaxNumThreadPixes = 32768;
3232

33-
Pix* global_crash_pixes[kMaxNumThreadPixes];
33+
static Pix* global_crash_pixes[kMaxNumThreadPixes];
3434

3535
void SavePixForCrash(int resolution, Pix* pix) {
3636
#ifdef __linux__

0 commit comments

Comments
 (0)