Permalink
Browse files

-Wno-unused-result fix

  • Loading branch information...
1 parent eda681c commit e6667f2116a5d0832c712e594e30e45fa4d99dc9 @stefanocasazza committed Jan 4, 2010
Showing with 30 additions and 11 deletions.
  1. +8 −6 README.md
  2. +1 −0 THANKS
  3. +10 −2 configure
  4. +10 −2 configure.in
  5. +1 −1 tests/examples/TSA/CA/tsaserial
View
@@ -2,7 +2,7 @@ ULib - C++ library
================================
What's this?
---------
+------------
ULib is a highly optimized class framework for writing C++ applications. I wrote this framework as my tool for writing applications in various contexts.
It is a result of many years of work as C++ programmer. I think, in my opinion, that its strongest points are simplicity, efficiency and sophisticate
@@ -14,7 +14,7 @@ web application frameworks for serving small dynamic webpages (and also make eas
Quickstart
---------
+----------
Take a look at:
@@ -30,22 +30,24 @@ Take a look at:
* --with-ldap use system openLDAP library - [will check /usr /usr/local]
* --with-libevent use system libevent library - [will check /usr /usr/local]
* --with-libuuid use system libuuid library - [will check /usr /usr/local]
+* --with-libxml2 use system libxml2 library - [will check /usr /usr/local]
if you desire wrapping of some system library installed.
Benchmarking
---------
+------------
$ ./configure && make
$ cd tests/examples
- $ ./benchmarking.sh
+ $ ./benchmarking.sh (or hello_world.sh)
Use apachebench
- $ ab -n 100000 -c10 http://127.0.0.1/usp/benchmarking.usp?name=stefano
+ $ ab -n 100000 -c10 http://127.0.0.1/usp/benchmarking.usp?name=stefano (or)
+ $ ab -n 100000 -c10 http://127.0.0.1/usp/hello_world.usp
More info
---------
+---------
ULib is normally built and installed as a set of shared object libraries and header files. These libraries and headers are installed using directories selected through a "configure" script that has been prepared with automake and autoconf. As such, they should build and install similarly to and in a manner compatible and consistent with most other GNU software. ULib is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
View
1 THANKS
@@ -1,3 +1,4 @@
The following people provided inspiration and moral support during the development of ULib:
John Fremlin john@freml.in, or http://john.fremlin.org/contact.html
+Marco Dani marco.dani62@gmail.com (for his valuable testing)
View
@@ -24969,7 +24969,7 @@ fi
# if gcc compiler add values to *FLAGS...
-if test "$GCC" = "yes" ; then
+if test "$GCC" = "yes"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports " >&5
$as_echo_n "checking whether $CC supports ... " >&6; }
@@ -25013,7 +25013,15 @@ fi
MAYBE_FLAGS="$MAYBE_FLAGS -finline -flto \
-findirect-inlining -ftree-switch-conversion -floop-interchange -floop-strip-mine -floop-block \
-Wstrict-aliasing=2 -Wp,-D_FORTIFY_SOURCE=2 -Wall -Wextra -Wsign-compare -Wpointer-arith -Wwrite-strings -Wlogical-op \
- -Wmissing-declarations -Wpacked -Wswitch-enum -Wmissing-format-attribute -Winit-self -Wno-format -Wno-format-extra-args -Wno-unused-result"
+ -Wmissing-declarations -Wpacked -Wswitch-enum -Wmissing-format-attribute -Winit-self -Wno-format -Wno-format-extra-args"
+
+ case "${gcc_version_raw}" in
+ 4.5.*)
+ MAYBE_FLAGS="$MAYBE_FLAGS -Wno-unused-result"
+ ;;
+ *)
+ ;;
+ esac
# -fno-common
# -Wno-missing-field-initializers -Wno-attributes -Wno-long-long
View
@@ -635,7 +635,7 @@ fi
# if gcc compiler add values to *FLAGS...
-if test "$GCC" = "yes" ; then
+if test "$GCC" = "yes"; then
AC_CC_TRY_FLAG
gcc_version_raw=`echo ${gcc_version} | cut -d' ' -f3`
@@ -646,7 +646,15 @@ if test "$GCC" = "yes" ; then
MAYBE_FLAGS="$MAYBE_FLAGS -finline -flto \
-findirect-inlining -ftree-switch-conversion -floop-interchange -floop-strip-mine -floop-block \
-Wstrict-aliasing=2 -Wp,-D_FORTIFY_SOURCE=2 -Wall -Wextra -Wsign-compare -Wpointer-arith -Wwrite-strings -Wlogical-op \
- -Wmissing-declarations -Wpacked -Wswitch-enum -Wmissing-format-attribute -Winit-self -Wno-format -Wno-format-extra-args -Wno-unused-result"
+ -Wmissing-declarations -Wpacked -Wswitch-enum -Wmissing-format-attribute -Winit-self -Wno-format -Wno-format-extra-args"
+
+ case "${gcc_version_raw}" in
+ 4.5.*)
+ MAYBE_FLAGS="$MAYBE_FLAGS -Wno-unused-result"
+ ;;
+ *)
+ ;;
+ esac
# -fno-common
# -Wno-missing-field-initializers -Wno-attributes -Wno-long-long
@@ -1 +1 @@
-1B10
+1B1E

0 comments on commit e6667f2

Please sign in to comment.