Skip to content

Commit

Permalink
MIPS DSPr2: Fix compiler warning with -mdspr2
Browse files Browse the repository at this point in the history
If -mdspr2 is passed to the compiler, __mips_dsp will be defined, and
__mips_dsp_rev will be >= 2, so parse_proc_cpuinfo() will not be used.
  • Loading branch information
dcommander committed Feb 17, 2020
1 parent 42d679b commit ed7cab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simd/mips/jsimd.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

static unsigned int simd_support = ~0;

#if defined(__linux__)
#if !(defined(__MIPSEL__) && defined(__mips_dsp) && (__mips_dsp_rev >= 2)) && defined(__linux__)

LOCAL(void)
parse_proc_cpuinfo(const char *search_string)
Expand Down

0 comments on commit ed7cab4

Please sign in to comment.