]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Remove -Wno-parentheses
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 6 Aug 2017 08:46:18 +0000 (18:46 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 6 Aug 2017 08:46:18 +0000 (18:46 +1000)
CMakeLists.txt
libs/splines/math_quaternion.h
plugins/vfspk3/vfs.cpp
radiant/brush_primit.cpp

index db0a1caeb3820e71943db5f1f1f5bcb8570748f0..6d801b7dcc292e64d6506446a6f070399285d5a9 100644 (file)
@@ -87,7 +87,6 @@ addflags("-Wall")
 addflags("-Wextra")
 addflags("-pedantic")
 
-addflags("-Wno-parentheses")
 addflags("-Wno-sign-compare")
 addflags("-Wno-write-strings")
 addflags("-Wno-unused-function")
index 8632661df914fbfb622b63ce134ee416ddb1eef9..b33f4425d28c2b6b660df07058c1ff1d56cd480b 100644 (file)
@@ -157,7 +157,7 @@ inline int operator==( quat_t a, quat_t b ) {
 }
 
 inline int operator!=( quat_t a, quat_t b ) {
-       return ( ( a.x != b.x ) || ( a.y != b.y ) || ( a.z != b.z ) && ( a.w != b.w ) );
+       return ( ( a.x != b.x ) || ( a.y != b.y ) || (( a.z != b.z ) && ( a.w != b.w )) );
 }
 
 inline float quat_t::Length( void ) {
index 23805ebcbafc5ecd58651a267d898061402be569..b98a19ce352281d4d071b9c37c5173754351be94 100644 (file)
@@ -683,8 +683,8 @@ int GetFileCount( const char *filename, int flag ){
 
        for ( archives_t::iterator i = g_archives.begin(); i != g_archives.end(); ++i )
        {
-               if ( ( *i ).is_pakfile && ( flag & VFS_SEARCH_PAK ) != 0
-                        || !( *i ).is_pakfile && ( flag & VFS_SEARCH_DIR ) != 0 ) {
+               if ( (( *i ).is_pakfile && ( flag & VFS_SEARCH_PAK ) != 0)
+                        || (!( *i ).is_pakfile && ( flag & VFS_SEARCH_DIR ) != 0) ) {
                        if ( ( *i ).archive->containsFile( fixed ) ) {
                                ++count;
                        }
index 4ea73c0356a7572e168bc12dec3381d1044f4fbe..b4dab4d0ac2d8599a0a75720c5c9e5e8e1d7729b 100644 (file)
@@ -1235,7 +1235,7 @@ inline Matrix4 matrix4_reflection_for_plane45( const Plane3& plane, const Vector
        Vector3 first = from;
        Vector3 second = to;
 
-       if ( vector3_dot( from, plane.normal() ) > 0 == vector3_dot( to, plane.normal() ) > 0 ) {
+       if ( (vector3_dot( from, plane.normal() ) > 0) == (vector3_dot( to, plane.normal() ) > 0) ) {
                first = vector3_negated( first );
                second = vector3_negated( second );
        }