Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-2422

Remove build warning of agl-service-steering-wheel

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • None

      Remove build warning of agl-service-steering-wheel:

       

      /work/agl-service-steering-wheel/src/steering_wheel_json.c:151:27: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘__off_t {aka long int}’ may change the sign of the result [-Wsign-conversion]
       filebuf = (char *)malloc(stbuf.st_size);
       ^~~~~
       /work/agl-service-steering-wheel/src/steering_wheel_json.c:152:20: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘__off_t {aka long int}’ may change the sign of the result [-Wsign-conversion]
       fread(filebuf, 1, stbuf.st_size, fp);
       ^~~~~
       /work/agl-service-steering-wheel/src/steering_wheel_json.c: In function ‘wheel_gear_para_init’:
       /work/agl-service-steering-wheel/src/steering_wheel_json.c:277:26: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘__off_t {aka long int}’ may change the sign of the result [-Wsign-conversion]
       filebuf = (char*)malloc(stbuf.st_size);
       ^~~~~
       /work/agl-service-steering-wheel/src/steering_wheel_json.c:278:20: warning: conversion to ‘size_t {aka long unsigned int}’ from ‘__off_t {aka long int}’ may change the sign of the result [-Wsign-conversion]
       fread(filebuf, 1, stbuf.st_size, fp);
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            LiXiaoming Li Xiaoming
            LiXiaoming Li Xiaoming
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: