Skip to content

Remove redundant decls#174

Merged
1a1a11a merged 2 commits into1a1a11a:developfrom
haochengxia:develop
Apr 29, 2025
Merged

Remove redundant decls#174
1a1a11a merged 2 commits into1a1a11a:developfrom
haochengxia:develop

Conversation

@haochengxia
Copy link
Copy Markdown
Collaborator

Since -Wredundant-decls is enabled, we get error msg like

libCacheSim/cache/admission/adaptsize/adaptsize_interface.cpp:28:23: error: redundant redeclaration of ‘admissioner_t* create_adaptsize_admissioner(const char*)’ in same scope [-Werror=redundant-decls]
   28 | extern admissioner_t *create_adaptsize_admissioner(const char *init_params); // declared in admissionAlgo.h
   
libCacheSim/cache/admission/adaptsize/adaptsize_interface.cpp:6:
libCacheSim/cache/admission/../../include/libCacheSim/admissionAlgo.h:31:16: note: previous declaration of ‘admissioner_t* create_adaptsize_admissioner(const char*)’
   31 | admissioner_t *create_adaptsize_admissioner(const char *init_params);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

@1a1a11a 1a1a11a merged commit f7a63df into 1a1a11a:develop Apr 29, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants