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

Fix for Ubuntu 14.04 compile #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ydkhatri
Copy link
Contributor

Fixes this compilation error:

/home/class/apfs-fuse2/apfs-fuse/3rdparty/lzfse/src/lzfse_fse.h:564:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
   for (int i = 0; i < table_size; i++) {
   ^
/home/class/apfs-fuse2/apfs-fuse/3rdparty/lzfse/src/lzfse_fse.h:564:3: note: use option -std=c99 or -std=gnu99 to compile your code
make[2]: *** [CMakeFiles/lzfse.dir/3rdparty/lzfse/src/lzfse_decode.c.o] Error 1
make[1]: *** [CMakeFiles/lzfse.dir/all] Error 2
make: *** [all] Error 2

Fixes this compilation error:
```
/home/class/apfs-fuse2/apfs-fuse/3rdparty/lzfse/src/lzfse_fse.h:564:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
   for (int i = 0; i < table_size; i++) {
   ^
/home/class/apfs-fuse2/apfs-fuse/3rdparty/lzfse/src/lzfse_fse.h:564:3: note: use option -std=c99 or -std=gnu99 to compile your code
make[2]: *** [CMakeFiles/lzfse.dir/3rdparty/lzfse/src/lzfse_decode.c.o] Error 1
make[1]: *** [CMakeFiles/lzfse.dir/all] Error 2
make: *** [all] Error 2
```
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.

1 participant