build: enable -Wextra by default

Also delete redundant 'return 0' from configure code snippets.

Change-Id: Ie3618db4abece6fb2d8ec8b52b88e84b4eb3a5b0
Refs: #3293
diff --git a/.waf-tools/compiler-features.py b/.waf-tools/compiler-features.py
index 8389025..cf41970 100644
--- a/.waf-tools/compiler-features.py
+++ b/.waf-tools/compiler-features.py
@@ -73,7 +73,7 @@
 STD_TO_STRING = '''
 #include <string>
 int
-main(int argc, char** argv)
+main()
 {
   std::string s = std::to_string(0);
   s = std::to_string(0l);
@@ -85,7 +85,6 @@
   s = std::to_string(0.0);
   s = std::to_string(0.0l);
   s.clear();
-  return 0;
 }
 '''
 
@@ -107,7 +106,6 @@
   v.insert(it, 2);
   it = v.cend() - 1;
   v.erase(it);
-  return 0;
 }
 '''