Skip to content

Commit

Permalink
only enable warnings in CI
Browse files Browse the repository at this point in the history
..and remove stale arch condition.

Signed-off-by: Jay Lee <BusyJayLee@gmail.com>
  • Loading branch information
BusyJay committed Feb 6, 2025
1 parent 8c926d5 commit 63fae55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 0 additions & 3 deletions jemalloc-ctl/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ macro_rules! r {

#[cfg(test)]
#[test]
#[cfg(not(target_arch = "mips64el"))]
#[allow(unused)]
fn [<$id _read_test>]() {
match stringify!($id) {
Expand Down Expand Up @@ -112,7 +111,6 @@ macro_rules! w {

#[cfg(test)]
#[test]
#[cfg(not(target_arch = "mips64el"))]
fn [<$id _write_test>]() {
match stringify!($id) {
"background_thread" |
Expand Down Expand Up @@ -161,7 +159,6 @@ macro_rules! u {

#[cfg(test)]
#[test]
#[cfg(not(target_arch = "mips64el"))]
#[allow(unused)]
fn [<$id _update_test>]() {
match stringify!($id) {
Expand Down
1 change: 0 additions & 1 deletion jemalloc-ctl/src/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ union MaybeUninit<T: Copy> {
mod tests {
use super::*;
#[test]
#[cfg(not(target_arch = "mips64el"))] // FIXME: SIGFPE
fn test_ptr2str() {
unsafe {
//{ // This is undefined behavior:
Expand Down
9 changes: 6 additions & 3 deletions jemalloc-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,12 @@ fn main() {
println!("cargo:rustc-link-lib={}={}", kind, &stem[3..]);
return;
}
// Disable -Wextra warnings - jemalloc doesn't compile free of warnings with
// it enabled: https://github.com/jemalloc/jemalloc/issues/1196
let compiler = cc::Build::new().extra_warnings(false).get_compiler();
let mut build = cc::Build::new();
if env::var("JEMALLOC_SYS_RUN_JEMALLOC_TESTS").is_err() {
// Disable -Wall unless in CI.
build.warnings(false);
}
let compiler = build.get_compiler();
let cflags = compiler
.args()
.iter()
Expand Down

0 comments on commit 63fae55

Please sign in to comment.