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

--- Comment #3 from Carlos Galvez <carlosgalvezp at gmail dot com> ---
Interesting, thanks for the quick reply! In case it helps, if I include the
header as a regular header, I do get the "note" referring to the system header:

# g++-11 -I include -Wold-style-cast main.cpp
In file included from main.cpp:1:
main.cpp: In function 'int main()':
main.cpp:5:21: warning: use of old-style cast to 'int' [-Wold-style-cast]
    5 |     int x = MY_CAST(123);
      |                     ^~~
include/third_party.h:3:26: note: in definition of macro 'MY_CAST'
    3 | #define MY_CAST(x) ((int)x)
      |

Reply via email to