mirror of
https://github.com/libjpeg-turbo/libjpeg-turbo.git
synced 2026-01-18 21:41:20 +01:00
Build: Fix Loongson MMI detection with -Werror
If compiler warnings are treated as errors, then the apostrophe in "Loongson MMI can't work with MIPS Release 6+" triggers a compiler warning that causes the HAVE_MMI test to fail. Surrounding the error message with quotes fixes the issue.
This commit is contained in:
@@ -448,7 +448,7 @@ set(CMAKE_REQUIRED_FLAGS -Wa,-mloongson-mmi,-mloongson-ext)
|
||||
|
||||
check_c_source_compiles("
|
||||
#if !(defined(__mips__) && __mips_isa_rev < 6)
|
||||
#error Loongson MMI can't work with MIPS Release 6+
|
||||
#error \"Loongson MMI can't work with MIPS Release 6+\"
|
||||
#endif
|
||||
int main(void) {
|
||||
int c = 0, a = 0, b = 0;
|
||||
|
||||
Reference in New Issue
Block a user