Skip to content

error: variable ‘permission’ set but not used [-Werror=unused-but-set-variable] #3

@fidalgo

Description

@fidalgo

Compiling gives the output:

cc -DNDEBUG -o build/native-hdfs-fuse proto/*.c src/*.c -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -lfuse -pthread -lprotobuf-c  -Werror -Wall -Wextra -I. -std=gnu99
src/fuse.c: In function ‘hadoop_fuse_open’:
src/fuse.c:1022:35: error: variable ‘permission’ set but not used [-Werror=unused-but-set-variable]
   Hadoop__Hdfs__FsPermissionProto permission = HADOOP__HDFS__FS_PERMISSION_PROTO__INIT;
                                   ^
cc1: all warnings being treated as errors
make: *** [build/native-hdfs-fuse] Error 1

after adding -Wno-unused to the compilter flags it starts working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions