Skip to content

Review from Group 16#1

Open
canondetortugas wants to merge 26 commits intoerichanslee:masterfrom
canondetortugas:group18review
Open

Review from Group 16#1
canondetortugas wants to merge 26 commits intoerichanslee:masterfrom
canondetortugas:group18review

Conversation

@canondetortugas
Copy link
Copy Markdown

No description provided.

calvinwylie and others added 26 commits October 30, 2015 14:01
Fixed typo in documentation.
A fresh clone and make of this project warned me that `getopt` was
implicitly declared:

    $ make
    icc -c -std=c99 -g -O3 -no-prec-div -xcore-avx2 -ipo -qopt-report=5 -qopt-report-phase=vec -openmp path.c
    icc: remark #10346: optimization reporting will be enabled at link time when performing interprocedural optimizations
    path.c(214): warning #266: function "getopt" declared implicitly
          while ((c = getopt(argc, argv, optstring)) != -1) {
                      ^

    path.c(214): warning #2330: argument of type "const char *" is incompatible with parameter of type "void *" (dropping qualifiers)
          while ((c = getopt(argc, argv, optstring)) != -1) {
                                         ^
    ...

This StackOverflow post [1] says to remove the `-std=c99` flag or
explicitly include `getopt.h` to fix the problem. I opted for the
latter. After this fix, everythin builds without warning.

[1]: http://stackoverflow.com/a/22576057/3187068
Fixed a couple of typos in `path.c`.
Added missing `<getopt.h>` inclusion.
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

Successfully merging this pull request may close these issues.

5 participants