Skip to content

Commit

Permalink
gpttool: turn on -Werror
Browse files Browse the repository at this point in the history
- Deal with some -Wunused issues

Change-Id: If9a05ccbda862bbd401df0f5d5a1837abedd9b83
  • Loading branch information
Mark Salyzyn committed May 5, 2014
1 parent 02a7c3a commit 1c00d46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions gpttool/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include $(CLEAR_VARS)

LOCAL_SRC_FILES := gpttool.c
LOCAL_STATIC_LIBRARIES := libz
LOCAL_CFLAGS := -Werror

LOCAL_MODULE := gpttool

Expand Down
15 changes: 6 additions & 9 deletions gpttool/gpttool.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* system/core/gpttool/gpttool.c
**
/*
** Copyright 2011, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,18 +14,18 @@
** limitations under the License.
*/

#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <unistd.h>

#include <zlib.h>

#include <linux/fs.h>

#include <sys/stat.h>

typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
Expand Down Expand Up @@ -252,11 +251,9 @@ int parse_ptn(struct ptable *ptbl, char *x)
int main(int argc, char **argv)
{
struct ptable ptbl;
struct efi_entry *entry;
struct efi_header *hdr = &ptbl.header;
struct stat s;
u32 n;
u64 sz, blk;
u64 sz;
int fd;
const char *device;
int real_disk = 0;
Expand Down

0 comments on commit 1c00d46

Please sign in to comment.