X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=opts.c;h=e6ca420bb4a0b18ca41a1be97b12e237fc4f333b;hb=ad92a5f27d9ad056a0225f74f1c986bc179be064;hp=77aa9c06e02c07fad5916386470f98fab7ad0683;hpb=489ad486bcbb04da48715c4f59aa3da8dd5983a6;p=xonotic%2Fgmqcc.git diff --git a/opts.c b/opts.c old mode 100755 new mode 100644 index 77aa9c0..e6ca420 --- a/opts.c +++ b/opts.c @@ -21,11 +21,16 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ +#include +#include +#include + #include "gmqcc.h" + unsigned int opts_optimizationcount[COUNT_OPTIMIZATIONS]; opts_cmd_t opts; /* command lien options */ -static void opts_setdefault() { +static void opts_setdefault(void) { memset(&opts, 0, sizeof(opts_cmd_t)); OPTS_OPTION_BOOL(OPTION_CORRECTION) = true; @@ -361,7 +366,7 @@ void opts_ini_init(const char *file) { if ((line = opts_ini_parse(ini, &opts_ini_load, &error)) != 0) { /* there was a parse error with the ini file */ - con_printmsg(LVL_ERROR, file, line, "error", error); + con_printmsg(LVL_ERROR, file, line, 0 /*TODO: column for ini error*/, "error", error); vec_free(error); }