gcc/libgomp/testsuite/libgomp.oacc-c-c++-common
Thomas Schwinge a2ab2f0dfb Address '?:' issues in 'libgomp.oacc-c-c++-common/mode-transitions.c'
[...]/libgomp.oacc-c-c++-common/mode-transitions.c: In function ‘t3’:
    [...]/libgomp.oacc-c-c++-common/mode-transitions.c:127:43: warning: ‘?:’ using integer constants in boolean context, the expression will always evaluate to ‘true’ [-Wint-in-bool-context]
      127 |     assert (arr[i] == ((i % 64) < 32) ? 1 : -1);
          |                                           ^

    [...]/libgomp.oacc-c-c++-common/mode-transitions.c: In function ‘t9’:
    [...]/libgomp.oacc-c-c++-common/mode-transitions.c:359:46: warning: ‘?:’ using integer constants in boolean context, the expression will always evaluate to ‘true’ [-Wint-in-bool-context]
      359 |         assert (arr[i] == ((i % 3) == 0) ? 1 : 2);
          |                                              ^

..., and PR101862 "[C, C++] Potential '?:' diagnostic for always-true
expressions in boolean context".

	libgomp/
	* testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
	'?:' issues.
2021-08-16 12:12:09 +02:00
..
2015-11-03 12:28:22 +01:00
2015-11-03 12:28:22 +01:00
2016-03-30 17:08:47 +02:00
2016-03-30 17:08:47 +02:00
2018-06-22 12:04:14 +02:00
2016-03-30 17:08:47 +02:00
2015-12-02 16:53:34 +01:00
2015-12-02 16:53:34 +01:00
2015-12-02 16:53:34 +01:00
2016-03-30 17:08:47 +02:00
2018-06-22 12:04:14 +02:00
2018-06-22 12:04:14 +02:00
2018-06-22 12:04:14 +02:00
2021-04-26 12:32:00 +02:00
2019-10-02 21:05:35 +02:00
2019-12-19 00:10:08 +01:00
2019-12-19 00:10:08 +01:00
2019-12-19 00:10:08 +01:00
2019-12-19 00:10:08 +01:00
2019-12-19 00:10:08 +01:00
2021-04-26 12:32:00 +02:00
2021-04-26 12:32:00 +02:00
2018-06-22 12:04:14 +02:00
2018-06-22 12:04:14 +02:00
2018-06-22 12:04:14 +02:00
2021-04-26 12:32:00 +02:00
2021-04-26 12:32:00 +02:00
2021-04-26 12:32:00 +02:00
2018-08-02 15:59:01 +00:00
2021-04-26 12:32:00 +02:00
2021-07-21 23:58:11 +02:00
2021-07-21 23:58:11 +02:00
2020-01-20 16:51:06 +00:00
2021-04-26 12:32:00 +02:00
2020-01-20 16:51:06 +00:00
2016-03-30 17:08:47 +02:00