[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23640: 25.1.50; Getting rid of compiler warnings
From: |
Ken Brown |
Subject: |
bug#23640: 25.1.50; Getting rid of compiler warnings |
Date: |
Sat, 28 May 2016 14:40:36 -0400 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 |
Building master on Cygwin with gcc-5.3.0 yields many "control reaches
end of non-void function" warnings. What's the best way to get rid of
these? Should I add return statements that will never be reached, like
this?
--- a/src/frame.c
+++ b/src/frame.c
@@ -263,6 +263,8 @@ See also `frame-live-p'. */)
return Qns;
default:
emacs_abort ();
+ /* Pacify compiler. */
+ return Qnil;
}
}
Ken
- bug#23640: 25.1.50; Getting rid of compiler warnings,
Ken Brown <=
- bug#23640: 25.1.50; Getting rid of compiler warnings, Eli Zaretskii, 2016/05/28
- bug#23640: 25.1.50; Getting rid of compiler warnings, Ken Brown, 2016/05/28
- bug#23640: 25.1.50; Getting rid of compiler warnings, Ken Brown, 2016/05/29
- bug#23640: 25.1.50; Getting rid of compiler warnings, Ken Brown, 2016/05/30
- bug#23640: 25.1.50; Getting rid of compiler warnings, Ken Brown, 2016/05/30
- bug#23640: 25.1.50; Getting rid of compiler warnings, Ken Brown, 2016/05/30
- bug#23640: 25.1.50; Getting rid of compiler warnings, Paul Eggert, 2016/05/30
- bug#23640: 25.1.50; Getting rid of compiler warnings, Ken Brown, 2016/05/30
- bug#23640: 25.1.50; Getting rid of compiler warnings, Andy Moreton, 2016/05/31
- bug#23640: 25.1.50; Getting rid of compiler warnings, Richard Stallman, 2016/05/31