From 0ce7fd4be6892fe55c8a5635a78bdf6378363e6a Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Mon, 16 Feb 2015 00:14:18 +0100 Subject: Trivial Dead assignment fixes in configure Fixes a Dead assignment and unused variable warning. With this patch and http://www.cmake.org/Bug/view.php?id=15203, `scan-build cmake` will give zero warnings! Change-Id: Idc7a03fbf1e8196bc139a2c6663ec48b897f2897 Reviewed-on: https://code.wireshark.org/review/7144 Petri-Dish: Alexis La Goutte Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte --- ConfigureChecks.cmake | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index a3be685778..62314dc62a 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -119,10 +119,11 @@ if (NL_FOUND) "#include int main() { int x = NL80211_FREQUENCY_ATTR_MAX_TX_POWER; - x = NL80211_ATTR_SUPPORTED_IFTYPES; - x = NL80211_ATTR_SUPPORTED_COMMANDS; - x = NL80211_ATTR_WIPHY_FREQ; - x = NL80211_CHAN_NO_HT; + x |= NL80211_ATTR_SUPPORTED_IFTYPES; + x |= NL80211_ATTR_SUPPORTED_COMMANDS; + x |= NL80211_ATTR_WIPHY_FREQ; + x |= NL80211_CHAN_NO_HT; + (void)x; }" HAVE_NL80211 ) -- cgit v1.2.1