X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fdata%2Fformat.c;h=f4a61d34bc1efd0f18bcb89170740a44170892a9;hb=92f198d13c9214c0d75b936f0ea0dc2684ea914b;hp=88b613748c42e871733751a81b2ced6223e75d95;hpb=75862bc63003b33702bfd6844b8a4d1c632488b3;p=pspp-builds.git diff --git a/src/data/format.c b/src/data/format.c index 88b61374..f4a61d34 100644 --- a/src/data/format.c +++ b/src/data/format.c @@ -20,6 +20,7 @@ #include #include "format.h" #include +#include #include #include #include @@ -280,7 +281,7 @@ convert_fmt_ItoO (const struct fmt_spec *input, struct fmt_spec *output) case FMT_CCC: case FMT_CCD: case FMT_CCE: - assert (0); + NOT_REACHED (); case FMT_Z: case FMT_A: /* nothing is necessary */ @@ -314,7 +315,7 @@ convert_fmt_ItoO (const struct fmt_spec *input, struct fmt_spec *output) /* nothing is necessary */ break; default: - assert (0); + NOT_REACHED (); } assert (check_output_specifier (output, 0)); @@ -385,7 +386,6 @@ measure_is_valid(enum measure m) bool alignment_is_valid(enum alignment a) { - if ( a < 0 ) return false; if ( a >= n_ALIGN) return false; return true; }