line-map.h: Include EXPR, so that unused variable warnings do not occur.
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Thu, 13 Nov 2014 10:46:56 +0000 (10:46 +0000)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 13 Nov 2014 10:46:56 +0000 (10:46 +0000)
* include/line-map.h: Include EXPR, so that unused variable warnings
do not occur.

From-SVN: r217473

libcpp/ChangeLog
libcpp/include/line-map.h

index b75d521cf9fbb620cf91065f6da227e53aace15e..5814dc4da18c66ff0e92b01e508bb4e1a5e3ea49 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       * include/line-map.h: Include EXPR, so that unused variable warnings
+       do not occur.
+
 2014-11-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
 
        PR fortran/44054
index 2fcee1906bea500b8a138edefad9b756f9351876..edcbdc9bd661d2595914f5d3cce88b9cef657287 100644 (file)
@@ -586,7 +586,8 @@ bool linemap_location_from_macro_expansion_p (const struct line_maps *,
   ({linemap_assert (!linemap_macro_expansion_map_p (LINE_MAP)); \
     (LINE_MAP);})
 #else
-#define linemap_assert(EXPR)
+/* Include EXPR, so that unused variable warnings do not occur.  */
+#define linemap_assert(EXPR) ((void)(0 && (EXPR)))
 #define linemap_check_ordinary(LINE_MAP) (LINE_MAP)
 #endif