Mistaken unused variables

feature/19
Daniel Warner 2011-12-14 13:28:49 +00:00
parent c5040a8d66
commit f5d96cfc35
2 changed files with 10 additions and 4 deletions

View File

@ -43,9 +43,15 @@ Julian::Julian(const time_t t)
{
struct tm ptm;
#if WIN32
assert(gmtime_s(&ptm, &t));
if (gmtime_s(&ptm, &t))
{
assert(1);
}
#else
assert(gmtime_r(&t, &ptm) != NULL);
if (gmtime_r(&t, &ptm) == NULL)
{
assert(1);
}
#endif
int year = ptm.tm_year + 1900;
double day = ptm.tm_yday + 1 +

View File

@ -3,9 +3,9 @@ AR=ar
DEBUG ?= 0
ifeq ($(DEBUG), 1)
CFLAGS=-c -Wall -O0 -g -pedantic -Wextra -Wconversion
CFLAGS=-c -Wall -O0 -g -pedantic -Werror -Wextra -Wconversion
else
CFLAGS=-c -Wall -O2 -pedantic -Wextra -Wconversion -DNDEBUG
CFLAGS=-c -Wall -O2 -pedantic -Werror -Wextra -Wconversion -DNDEBUG
endif
LDFLAGS=