Page MenuHomePhabricator

solve compiler (gcc) warnings between __attribute__ ((__malloc__)) and __attribute__ ((__pure__))
Open, NormalPublic

Description

warnings like these are really annoying. the attribute malloc and pure are only available on gcc, so malloc should be removed when pure is used.

/usr/include/eina-1/eina/eina_module.h:249:2: warning: ignoring attribute ‘malloc’ because it conflicts with attribute ‘pure’ [-Wattributes]
  eina_module_environment_path_get(const char *env, const char *sub_dir) EINA_PURE EINA_MALLOC EINA_ARG_NONNULL(1, 2);
ProhtMeyhet triaged this task as Normal priority.