Skip to content

MAINT: get rid of some compiler warnings #9395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pandas/src/datetime/np_datetime_strings.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ get_localtime(NPY_TIME_T *ts, struct tm *tms)
return -1;
}

#if 0
/*
* Wraps `gmtime` functionality for multiple platforms. This
* converts a time value to a time structure in UTC.
Expand Down Expand Up @@ -161,6 +162,7 @@ get_gmtime(NPY_TIME_T *ts, struct tm *tms)
"to a UTC time", func_name);
return -1;
}
#endif

/*
* Converts a datetimestruct in UTC to a datetimestruct in local time,
Expand Down Expand Up @@ -1144,7 +1146,7 @@ make_iso_8601_datetime(pandas_datetimestruct *dts, char *outstr, int outlen,
#ifdef _WIN32
tmplen = _snprintf(substr, sublen, "%04" NPY_INT64_FMT, dts->year);
#else
tmplen = snprintf(substr, sublen, "%04" NPY_INT64_FMT, (long long)dts->year);
tmplen = snprintf(substr, sublen, "%04" NPY_INT64_FMT, dts->year);
#endif
/* If it ran out of space or there isn't space for the NULL terminator */
if (tmplen < 0 || tmplen > sublen) {
Expand Down
2 changes: 1 addition & 1 deletion pandas/src/parse_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ static double xstrtod(const char *p, char **q, char decimal, char sci,

int to_double(char *item, double *p_value, char sci, char decimal, int *maybe_int)
{
char *p_end;
char *p_end = NULL;

*p_value = xstrtod(item, &p_end, decimal, sci, 1, maybe_int);

Expand Down
2 changes: 1 addition & 1 deletion pandas/src/period_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,5 @@ double getAbsTime(int freq, npy_int64 dailyDate, npy_int64 originalDate);
char *c_strftime(struct date_info *dinfo, char *fmt);
int get_yq(npy_int64 ordinal, int freq, int *quarter, int *year);

void initialize_daytime_conversion_factor_matrix();
void initialize_daytime_conversion_factor_matrix(void);
#endif
2 changes: 1 addition & 1 deletion pandas/tslib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cdef extern from "datetime_helper.h":
double total_seconds(object)

# this is our datetime.pxd
from datetime cimport *
from datetime cimport cmp_pandas_datetimestruct
from util cimport is_integer_object, is_float_object, is_datetime64_object, is_timedelta64_object

from libc.stdlib cimport free
Expand Down