Mistaken unused variables
parent
c5040a8d66
commit
f5d96cfc35
10
Julian.cpp
10
Julian.cpp
|
@ -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 +
|
||||
|
|
4
Makefile
4
Makefile
|
@ -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=
|
||||
|
|
Loading…
Reference in New Issue