[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] initialize some variables in test to prevent -Wmaybe-uninitialized

From: Andreas Stieger <andreas.stieger_at_gmx.de>
Date: Sat, 16 Nov 2013 00:08:40 +0000

Hello,

just noticed some warnings:
subversion/tests/libsvn_fs_base/fs-base-test.c:239:6: warning: 'present'
may be used uninitialized in this function [-Wmaybe-uninitialized] et
al. Initializing to boolean value that would fail the test if the
reference wasn't changed in called function at all.

[[[
* subversion/tests/libsvn_fs/fs-test.c
  (check_entry_present, check_entry_absent),
  subversion/tests/libsvn_fs_base/fs-base-test.c
  (check_entry_present, check_entry_absent, check_id_present,
  check_id_absent): initialize variable present to silence
  warning -Wmaybe-uninitialized
]]]

Andreas

Received on 2013-11-16 01:09:16 CET

This is an archived mail posted to the Subversion Dev mailing list.