Changeset b752f945 in rtems


Ignore:
Timestamp:
Apr 16, 2016, 1:01:47 PM (4 years ago)
Author:
Pavel Pisa <ppisa@…>
Branches:
master
Children:
8f6c295b
Parents:
e65c45c
Message:

i386/pc386: reimplemented check for unused EDID entry in fb_vesa.c to suppress GCC 6 warning.

closes #2634

Location:
c/src/lib/libbsp/i386/pc386
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/console/fb_vesa_rm.c

    re65c45c rb752f945  
    500500        {
    501501            /* check if descriptor is unused */
    502             if (*(uint16_t*)&edid.STI[index] == EDID_STI_DescriptorUnused)
     502            if (edid1_STI_is_unused(&edid.STI[index]))
    503503            {
    504504                index++;
  • c/src/lib/libbsp/i386/pc386/include/edid.h

    re65c45c rb752f945  
    474474}
    475475
     476EDID_INLINE_ROUTINE int edid1_STI_is_unused (
     477      const EDID_standard_timing_identification *edid_sti) {
     478    return (edid_sti->HorizontalActivePixels ==
     479                  (uint8_t)EDID_STI_DescriptorUnused) &&
     480           (edid_sti->ImageAspectRatio_RefreshRate ==
     481                  (uint8_t)(EDID_STI_DescriptorUnused >> 8));
     482}
     483
    476484enum edid1_established_timings {
    477485/*  Established Timings I */
Note: See TracChangeset for help on using the changeset viewer.