summaryrefslogtreecommitdiff
path: root/ext/intl/calendar/gregoriancalendar_methods.cpp
diff options
context:
space:
mode:
authorChristopher Jones <sixd@php.net>2013-08-19 17:17:54 -0700
committerChristopher Jones <sixd@php.net>2013-08-19 17:17:54 -0700
commitd5979c88eaca273479cf244d3e10c2f089c4f080 (patch)
tree1c37c63d6e48366117264b26813e03a08255b31e /ext/intl/calendar/gregoriancalendar_methods.cpp
parent4ee1ec4bcfee93a3d9bdc2abf195bf5b29dcea73 (diff)
downloadphp-git-d5979c88eaca273479cf244d3e10c2f089c4f080.tar.gz
Reduce (some more) compile noise of 'unused variable' and 'may be used
uninitialized' warnings.
Diffstat (limited to 'ext/intl/calendar/gregoriancalendar_methods.cpp')
-rw-r--r--ext/intl/calendar/gregoriancalendar_methods.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/intl/calendar/gregoriancalendar_methods.cpp b/ext/intl/calendar/gregoriancalendar_methods.cpp
index 3c05253de1..08b894964c 100644
--- a/ext/intl/calendar/gregoriancalendar_methods.cpp
+++ b/ext/intl/calendar/gregoriancalendar_methods.cpp
@@ -38,7 +38,6 @@ static inline GregorianCalendar *fetch_greg(Calendar_object *co) {
static void _php_intlgregcal_constructor_body(INTERNAL_FUNCTION_PARAMETERS)
{
- zval *object = getThis();
zval **tz_object = NULL;
zval **args_a[6] = {0},
***args = &args_a[0];
@@ -84,7 +83,7 @@ static void _php_intlgregcal_constructor_body(INTERNAL_FUNCTION_PARAMETERS)
}
// instantion of ICU object
- GregorianCalendar *gcal;
+ GregorianCalendar *gcal = NULL;
if (variant <= 2) {
// From timezone and locale (0 to 2 arguments)