Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed build with gcc #57

Closed
jungle-boogie opened this issue Aug 31, 2015 · 5 comments
Closed

failed build with gcc #57

jungle-boogie opened this issue Aug 31, 2015 · 5 comments

Comments

@jungle-boogie
Copy link
Contributor

Hello,

For the first time in a few days, I tried to build mlr from source after fetching new bits with git pull but this is a result of the build with make:
https://gist.github.com/jungle-boogie/b333580be350c4063e87

 make[1]: Leaving directory '/home/sean/bin/miller/c/dsls'
 gcc -std=gnu99 -I. -Wall -Werror -O3 *.c cli/*.c lib/*.c containers/*.c stream/*.c input/*.c mapping/*.c     output/*.c ./dsls/put_dsl_parse.o    ./dsls/put_dsl_lexer.o    ./dsls/put_dsl_wrapper.o     ./dsls/filter_dsl_parse.o ./dsls/filter_dsl_lexer.o ./dsls/filter_dsl_wrapper.o -lm -o mlr
 mapping/mlr_val.c: In function ‘s_i_sec2hms_func’:
 mapping/mlr_val.c:319:12: error: variable ‘sign’ set but not used [-Werror=unused-but-set-variable]
  long long sign = 1LL;
         ^
 mapping/mlr_val.c: In function ‘s_f_fsec2hms_func’:
 mapping/mlr_val.c:336:12: error: variable ‘sign’ set but not used [-Werror=unused-but-set-variable]
   long long sign = 1LL;
        ^
 cc1: all warnings being treated as errors
Makefile:75: recipe for target 'mlr' failed
make: *** [mlr] Error 1
@SikhNerd
Copy link
Contributor

I brought this up here as well: #55 (comment)

This was introduced as part of the dhms work, I suspect will be cleared up by @johnkerl shortly as he uses the sign variable for the next iteration.

@jungle-boogie
Copy link
Contributor Author

Hi @SikhNerd,

Thanks for the update and cross linking. Apologies for also not carefully reviewing open cases.

Thanks,
Sean

@johnkerl
Copy link
Owner

for sure this was introduced on #35

i'll fix this 1st thing this evening.

but also i need to crank up the warning levels for my compiler. this issue wasn't an error for me but was for you and was for travis.

johnkerl added a commit that referenced this issue Aug 31, 2015
@johnkerl
Copy link
Owner

fixed in 3e7e94c -- thank you for the report!! :)

@jungle-boogie
Copy link
Contributor Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants