#include "warning.h"
warning_t warning = {
+ .aggregate_return = false,
.attribute = true,
+ .cast_qual = false,
.char_subscripts = true,
+ .comment = false,
.declaration_after_statement = false,
.deprecated_declarations = true,
.div_by_zero = true,
/* Note: this switched on a lot of more warnings than gcc's -Wall */
SET(attribute);
SET(char_subscripts);
+ SET(comment);
SET(empty_statement);
SET(format);
SET(implicit_function_declaration);
SET(unused_value);
SET(unused_variable);
}
+ OPT("aggregate-return", aggregate_return);
OPT("attribute", attribute);
+ OPT("cast-qual", cast_qual);
OPT("char-subscripts", char_subscripts);
+ OPT("comment", comment);
OPT("declaration-after-statement", declaration_after_statement);
OPT("deprecated-declarations", deprecated_declarations);
OPT("div_by_zero", div_by_zero);
// TODO SET(function_end_without_return);
SET(empty_statement);
// TODO SET(incomplete_aggregate_init);
+ // TODO SET(missing_field_initializers);
// TODO SET(pointless_comparison);
SET(unused_parameter);
SET(unused_value);