Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

compiler-gcc4.h

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    • Jeroen Hofstee's avatar
      7ea50d52
      compiler_gcc: do not redefine __gnu_attributes · 7ea50d52
      Jeroen Hofstee authored
      
      gcc allows extensions to be non compiler specific by defining
      __* macros for the attributes supported by gcc. Having a
      different definition causes many warnings during the build
      (cdefs.h on FreeBSD uses __attribute((__pure__)) where u-boot
      uses __attribute__((pure)) for example). Do not redefine
      these macros to suppress these warnings.
      
      This patch ignores the checkpatch warning:
      WARNING: __packed is preferred over __attribute__((packed))
      
      Signed-off-by: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
      7ea50d52
      History
      compiler_gcc: do not redefine __gnu_attributes
      Jeroen Hofstee authored
      
      gcc allows extensions to be non compiler specific by defining
      __* macros for the attributes supported by gcc. Having a
      different definition causes many warnings during the build
      (cdefs.h on FreeBSD uses __attribute((__pure__)) where u-boot
      uses __attribute__((pure)) for example). Do not redefine
      these macros to suppress these warnings.
      
      This patch ignores the checkpatch warning:
      WARNING: __packed is preferred over __attribute__((packed))
      
      Signed-off-by: default avatarJeroen Hofstee <jeroen@myspectrum.nl>