zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] mem.c: declare file-local variables as 'static'
@ 2016-08-22  9:39 Jun T.
  0 siblings, 0 replies; only message in thread
From: Jun T. @ 2016-08-22  9:39 UTC (permalink / raw)
  To: zsh-workers

Just for consistency (and silence warnings).

# Or the 'static' is intentionally omitted?

diff --git a/Src/mem.c b/Src/mem.c
index e31145e..021dad5 100644
--- a/Src/mem.c
+++ b/Src/mem.c
@@ -157,13 +157,13 @@ mod_export Heapid last_heap_id;
  * Assumes old_heaps() will come along and restore it later
  * (outputs an error if old_heaps() is called out of sequence).
  */
-LinkList heaps_saved;
+static LinkList heaps_saved;
 
 /*
  * Debugging verbosity.  This must be set from a debugger.
  * An 'or' of bits from the enum heap_debug_verbosity.
  */
-volatile int heap_debug_verbosity;
+static volatile int heap_debug_verbosity;
 
 /*
  * Generate a heap identifier that's unique up to unsigned integer wrap.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-22  9:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-22  9:39 [PATCH] mem.c: declare file-local variables as 'static' Jun T.

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).