about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-05-28 17:39:00 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-05-28 17:39:00 +0000
commitecbc4e445792cb445207253bf9eab83322701178 (patch)
tree2af23d3e1412a73487f0529685a27840f9d62f04
parent089275cd12bad51b6960f21a6431690bdbe7565a (diff)
downloadzsh-ecbc4e445792cb445207253bf9eab83322701178.tar.gz
zsh-ecbc4e445792cb445207253bf9eab83322701178.tar.xz
zsh-ecbc4e445792cb445207253bf9eab83322701178.zip
Silence compiler warnings.
-rw-r--r--ChangeLog3
-rw-r--r--Src/Modules/zprof.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c4ec2b2d0..840f9a9fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-05-28  Bart Schaefer  <schaefer@zsh.org>
 
+	* unposted: Src/Modules/zprof.c: Silence bogus compiler warnings
+	about variables used when unitialized.
+
 	* Andrej: 14501 (as tweaked by 14510): Fix device and FIFO tests
 	for Cygwin and other platforms where they're not implemented or
 	the testing user has insufficient permissions.
diff --git a/Src/Modules/zprof.c b/Src/Modules/zprof.c
index 4034f9273..9c7acb334 100644
--- a/Src/Modules/zprof.c
+++ b/Src/Modules/zprof.c
@@ -219,11 +219,11 @@ zprof_wrapper(Eprog prog, FuncWrap w, char *name)
 {
     int active = 0;
     struct sfunc sf, *sp;
-    Pfunc f;
+    Pfunc f = NULL;
     Parc a = NULL;
     struct timeval tv;
     struct timezone dummy;
-    double prev, now;
+    double prev = 0, now;
 
     if (zprof_module && !(zprof_module->flags & MOD_UNLOAD)) {
         active = 1;