Browse Source

ckdb - make significant floating point errors fatal

master
kanoi 11 years ago
parent
commit
590d9dc583
  1. 3
      src/ckdb.c

3
src/ckdb.c

@ -16,6 +16,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <fenv.h>
#include <jansson.h>
#include <signal.h>
#include <stdio.h>
@ -5654,6 +5655,8 @@ int main(int argc, char **argv)
int c, ret;
char *kill;
feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
global_ckp = &ckp;
memset(&ckp, 0, sizeof(ckp));
ckp.loglevel = LOG_NOTICE;

Loading…
Cancel
Save