Skip to contentSkip to conversation

lib/zstd: remove unused macro tame compiler

PATCH New Alex Shi 1 participant 1 message Nov 6, 2020 Zstd

lore
Share & tools
lore

Alex Shi

author
#0 lore raw

PATCH 1/1 lib/zstd: remove unused macro tame compiler

There are some of unused macros cause compiler warning, let's remove them.

lib/zstd/fse_compress.c:82:0: warning: macro "FSE_FUNCTION_NAME" is not used [-Wunused-macros] lib/zstd/fse_decompress.c:90:0: warning: macro "FSE_FUNCTION_NAME" is not used [-Wunused-macros] lib/zstd/fse_compress.c:82:0: warning: macro "FSE_FUNCTION_NAME" is not used [-Wunused-macros] lib/zstd/fse_decompress.c:90:0: warning: macro "FSE_FUNCTION_NAME" is not used [-Wunused-macros] lib/zstd/fse_compress.c:83:0: warning: macro "FSE_TYPE_NAME" is not used [-Wunused-macros] lib/zstd/fse_decompress.c:91:0: warning: macro "FSE_TYPE_NAME" is not used [-Wunused-macros] lib/zstd/fse_compress.c:83:0: warning: macro "FSE_TYPE_NAME" is not used [-Wunused-macros] lib/zstd/fse_decompress.c:91:0: warning: macro "FSE_TYPE_NAME" is not used [-Wunused-macros] lib/zstd/fse_compress.c:81:0: warning: macro "FSE_CAT" is not used [-Wunused-macros] lib/zstd/fse_decompress.c:89:0: warning: macro "FSE_CAT" is not used [-Wunused-macros] lib/zstd/fse_compress.c:81:0: warning: macro "FSE_CAT" is not used [-Wunused-macros] lib/zstd/fse_decompress.c:89:0: warning: macro "FSE_CAT" is not used [-Wunused-macros]

---
 lib/zstd/fse_compress.c   | 5 -----
 lib/zstd/fse_decompress.c | 5 -----
 2 files changed, 10 deletions(-)
lib/zstd/fse_compress.c +0 -5
index ef3d1741d532..20367cd2eaa0 100644
@@ -77,11 +77,6 @@
 #error "FSE_FUNCTION_TYPE must be defined"
 #endif
 
-/* Function names */
-#define FSE_CAT(X, Y) X##Y
-#define FSE_FUNCTION_NAME(X, Y) FSE_CAT(X, Y)
-#define FSE_TYPE_NAME(X, Y) FSE_CAT(X, Y)
-
 /* Function templates */
 
 /* FSE_buildCTable_wksp() :
lib/zstd/fse_decompress.c +0 -5
index 0b353530fb3f..86fff64db563 100644
@@ -78,11 +78,6 @@
 #error "FSE_FUNCTION_TYPE must be defined"
 #endif
 
-/* Function names */
-#define FSE_CAT(X, Y) X##Y
-#define FSE_FUNCTION_NAME(X, Y) FSE_CAT(X, Y)
-#define FSE_TYPE_NAME(X, Y) FSE_CAT(X, Y)
-
 /* Function templates */
 
 size_t FSE_buildDTable_wksp(FSE_DTable *dt, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t workspaceSize)
Signature · 1 line
1.8.3.1