Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 11.0.0 20200917 (experimental)

Options
Warnings
Boost 1.73.0
C++2a
no pedantic
Raw compiler options
-Wconversion

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=c++2a -Wconversion
prog.cc: In function 'int main()':
prog.cc:12:10: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'short int' may change value [-Wconversion]
   12 |    Func1(bufferSize);   // C4267 for all platforms
      |          ^~~~~~~~~~
prog.cc:13:10: warning: conversion from 'size_t' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
   13 |    Func2(bufferSize);   // C4267 only for 64-bit platforms
      |          ^~~~~~~~~~
Exit Code:
0