https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107388

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This is -Wsign-conversion:

$ ./cc1plus -quiet t.C -Wsign-conversion
t.C: In function ‘void func(unsigned int)’:
t.C:2:28: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign
of the result [-Wsign-conversion]
    2 |   [[maybe_unused]] int v = size; // doesn't get diagnosed
      |                            ^~~~

Reply via email to