From: Jay Krell Date: Thu, 13 Jun 2019 08:29:45 +0000 (-0700) Subject: sre-save.c:114:1: warning: 'swap_with_size' defined but not used [-Wunused-function] X-Git-Tag: submit/tizen/20210909.063632~10331^2~5^2~1153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e35fa1041e74684374144474737517e9baf54bd8;p=platform%2Fupstream%2Fdotnet%2Fruntime.git sre-save.c:114:1: warning: 'swap_with_size' defined but not used [-Wunused-function] swap_with_size (char *dest, const char* val, int len, int nelem) { Commit migrated from https://github.com/mono/mono/commit/267a75f3656418c84eef65df653bda5b5843ee37 --- diff --git a/src/mono/mono/metadata/sre-save.c b/src/mono/mono/metadata/sre-save.c index a4787ee..2beea38 100644 --- a/src/mono/mono/metadata/sre-save.c +++ b/src/mono/mono/metadata/sre-save.c @@ -106,6 +106,7 @@ find_index_in_table (MonoDynamicImage *assembly, int table_idx, int col, guint32 return 0; } +#if G_BYTE_ORDER != G_LITTLE_ENDIAN /* * Copy len * nelem bytes from val to dest, swapping bytes to LE if necessary. * dest may be misaligned. @@ -151,6 +152,7 @@ swap_with_size (char *dest, const char* val, int len, int nelem) { memcpy (dest, val, len * nelem); #endif } +#endif static guint32 add_mono_string_to_blob_cached (MonoDynamicImage *assembly, MonoString *str)