Skip to content

Fix for Ubuntu 14.04 compile - #77

Open
ydkhatri wants to merge 1 commit into
sgan81:masterfrom
ydkhatri:patch-1
Open

Fix for Ubuntu 14.04 compile#77
ydkhatri wants to merge 1 commit into
sgan81:masterfrom
ydkhatri:patch-1

Conversation

@ydkhatri

Copy link
Copy Markdown
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