summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wachowski <mattwach@google.com>2018-08-09 09:17:17 -0700
committerMatt Wachowski <mattwach@google.com>2018-08-09 09:18:35 -0700
commit27583a2c7c1b1fcadb8421ea807df0715465b650 (patch)
treed8c10e1142c33203c6b0e23e7ad06dc1a185d185
parenta156b590429ad544a35c46993d24bb048b7299f7 (diff)
downloadandroid_device_generic_goldfish-27583a2c7c1b1fcadb8421ea807df0715465b650.tar.gz
android_device_generic_goldfish-27583a2c7c1b1fcadb8421ea807df0715465b650.tar.bz2
android_device_generic_goldfish-27583a2c7c1b1fcadb8421ea807df0715465b650.zip
Cleanup some compiler warnings in driver_cmd_nl80211.c.
Bug: b/80194417 Test: Recompile to assert warnings are gone. Change-Id: I80141b3105765b226211f78c6b748b0ac894a682
-rw-r--r--wifi/wpa_supplicant_8_lib/driver_cmd_nl80211.c25
1 files changed, 18 insertions, 7 deletions
diff --git a/wifi/wpa_supplicant_8_lib/driver_cmd_nl80211.c b/wifi/wpa_supplicant_8_lib/driver_cmd_nl80211.c
index 7cf4468..9589e85 100644
--- a/wifi/wpa_supplicant_8_lib/driver_cmd_nl80211.c
+++ b/wifi/wpa_supplicant_8_lib/driver_cmd_nl80211.c
@@ -43,8 +43,6 @@ int wpa_driver_nl80211_driver_cmd(
void* priv, char* cmd, char* buf, size_t buf_len) {
struct i802_bss* bss = priv;
struct wpa_driver_nl80211_data* drv = bss->drv;
- struct ifreq ifr;
- android_wifi_priv_cmd priv_cmd;
int ret = 0;
D("%s: called", __FUNCTION__);
@@ -70,27 +68,40 @@ int wpa_driver_nl80211_driver_cmd(
}
-int wpa_driver_set_p2p_noa(void* priv, u8 count, int start, int duration) {
+int wpa_driver_set_p2p_noa(
+ __attribute__((__unused__)) void* priv,
+ __attribute__((__unused__)) u8 count,
+ __attribute__((__unused__)) int start,
+ __attribute__((__unused__)) int duration) {
D("%s: called", __FUNCTION__);
return 0;
}
-int wpa_driver_get_p2p_noa(void* priv, u8* buf, size_t len) {
+int wpa_driver_get_p2p_noa(
+ __attribute__((__unused__)) void* priv,
+ __attribute__((__unused__)) u8* buf,
+ __attribute__((__unused__)) size_t len) {
D("%s: called", __FUNCTION__);
return 0;
}
-int wpa_driver_set_p2p_ps(void* priv, int legacy_ps, int opp_ps, int ctwindow) {
+int wpa_driver_set_p2p_ps(
+ __attribute__((__unused__)) void* priv,
+ __attribute__((__unused__)) int legacy_ps,
+ __attribute__((__unused__)) int opp_ps,
+ __attribute__((__unused__)) int ctwindow) {
D("%s: called", __FUNCTION__);
return -1;
}
int wpa_driver_set_ap_wps_p2p_ie(
- void* priv, const struct wpabuf* beacon,
- const struct wpabuf* proberesp, const struct wpabuf* assocresp) {
+ __attribute__((__unused__)) void* priv,
+ __attribute__((__unused__)) const struct wpabuf* beacon,
+ __attribute__((__unused__)) const struct wpabuf* proberesp,
+ __attribute__((__unused__)) const struct wpabuf* assocresp) {
D("%s: called", __FUNCTION__);
return 0;
}