[Bug c/94258] New: Warning Correction while using format specifiers %hx and %ho

2020-03-22 Thread ravivasani75 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94258

Bug ID: 94258
   Summary: Warning Correction while using format specifiers %hx
and %ho
   Product: gcc
   Version: 7.5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ravivasani75 at gmail dot com
  Target Milestone: ---

Created attachment 48079
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48079&action=edit
outputs are 'short int's, but warning is specifying that %hx and %ho need 'int'
argument

Warning informs that %hx and %ho need 'int' argument, but printf prints it as
'short int'

[Bug c++/94634] New: ++(fun(a)) is acts as lvalue

2020-04-17 Thread ravivasani75 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94634

Bug ID: 94634
   Summary: ++(fun(a)) is acts as lvalue
   Product: gcc
   Version: 7.5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ravivasani75 at gmail dot com
  Target Milestone: ---

Created attachment 48300
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48300&action=edit
++(fun(a)) is acts as lvalue