diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 9c388c8..3d7f876 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -40,7 +40,7 @@ jobs: - name: config run: | - xmake f -c -k shared -y -vD + xmake f -c -k shared -y -vD --mo=y --http_client_zip=y --http_client_ssl=y - name: build run: | diff --git a/.github/workflows/ubuntu_aarch64.yml b/.github/workflows/ubuntu_aarch64.yml index 21110e5..6d56ef0 100644 --- a/.github/workflows/ubuntu_aarch64.yml +++ b/.github/workflows/ubuntu_aarch64.yml @@ -51,7 +51,7 @@ jobs: - name: configure run: | - xmake f -p cross -a aarch64 --sdk=`pwd`/${{ matrix.cross }}-cross -k shared -y -vD + xmake f -p cross -a aarch64 --sdk=`pwd`/${{ matrix.cross }}-cross -k shared -y -vD --mo=y --http_client_zip=y --http_client_ssl=y - name: build run: | diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index d12734e..001e5cb 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -32,7 +32,7 @@ jobs: - name: configure shell: cmd run: | - xmake f -c -k shared -y -vD + xmake f -c -k shared -y -vD --mo=y --http_client_zip=y --http_client_ssl=y - name: build shell: cmd diff --git a/hikyuu/utilities/mo/moFileReader.h b/hikyuu/utilities/mo/moFileReader.h index 1bf5b55..862d8d4 100644 --- a/hikyuu/utilities/mo/moFileReader.h +++ b/hikyuu/utilities/mo/moFileReader.h @@ -34,6 +34,11 @@ #ifndef __MOFILEREADER_SINGLE_INCLUDE_H_INCLUDED__ #define __MOFILEREADER_SINGLE_INCLUDE_H_INCLUDED__ +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wsign-compare" +#endif + #if defined(_MSC_VER) #pragma warning(disable : 4267) #endif /* _MSC_VER */ @@ -818,10 +823,14 @@ inline int moFileGetNumStrings() { } #endif +MO_END_NAMESPACE + #if defined(_MSC_VER) #pragma warning(default : 4251) #endif /* _MSC_VER */ -MO_END_NAMESPACE +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif #endif /* __MOFILEREADER_SINGLE_INCLUDE_H_INCLUDED__ */ \ No newline at end of file