This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GSOC


Hi ,

While working I just figured out that -Wconversion is buggy. Please see the
below code- -

$ cat b.c
#include <stdint.h>

void main (void)
{
        //contains build errors
        uint16_t x = 1;
        uint16_t y = 2;
        y += x;  /* contains error */

}

$ gcc b.c -Wconversion
b.c: In function ‘main’:
b.c:22:7: warning: conversion to ‘uint16_t {aka short unsigned int}’
from ‘int’ may alter its value [-Wconversion]
  y += x;  /* contains error */

Please help me to know as an GSOC student can I work on this for this year
to make -Wconversion more robust.

Thanks & Regards,
Ashwina

-- 
Ashwina Kumar
BIT Mesra


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]