mirror of https://gerrit.osmocom.org/libusrp
Fix compiler warnings across the tree. Adds --enable-warnings-as-errors configure option. Currently compiles with no warnings with GCC 4.2.3 on Ubuntu 8.04.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9396 221aa14e-8319-0410-a670-987f0aec2ac5
This commit is contained in:
parent
6f9aca985c
commit
0b7d2189c1
|
@ -71,12 +71,14 @@ usage ()
|
|||
exit (1);
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
die (const char *msg)
|
||||
{
|
||||
fprintf (stderr, "%s (die): %s\n", prog_name, msg);
|
||||
exit (1);
|
||||
}
|
||||
#endif
|
||||
|
||||
static int
|
||||
hexval (char ch)
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
static char *std_paths[] = {
|
||||
static const char *std_paths[] = {
|
||||
"@prefix@/share/usrp",
|
||||
"/usr/local/share/usrp",
|
||||
0
|
||||
|
|
|
@ -58,8 +58,8 @@ static const int hash_slot_addr[2] = {
|
|||
USRP_HASH_SLOT_1_ADDR
|
||||
};
|
||||
|
||||
static char *default_firmware_filename = "std.ihx";
|
||||
static char *default_fpga_filename = "std_2rxhb_2tx.rbf";
|
||||
static const char *default_firmware_filename = "std.ihx";
|
||||
static const char *default_fpga_filename = "std_2rxhb_2tx.rbf";
|
||||
|
||||
#include "std_paths.h"
|
||||
#include <stdio.h>
|
||||
|
@ -67,7 +67,7 @@ static char *default_fpga_filename = "std_2rxhb_2tx.rbf";
|
|||
static char *
|
||||
find_file (const char *filename, int hw_rev)
|
||||
{
|
||||
char **sp = std_paths;
|
||||
const char **sp = std_paths;
|
||||
static char path[1000];
|
||||
char *s;
|
||||
|
||||
|
|
|
@ -69,6 +69,7 @@ noinst_HEADERS =
|
|||
_usrp_prims_la_LIBADD = $(USRP_LA) -lstdc++ $(PYTHON_LDFLAGS)
|
||||
_usrp_prims_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
|
||||
|
||||
_usrp_prims_la_CXXFLAGS = @swig_CXXFLAGS@
|
||||
|
||||
prims.cc usrp_prims.py : prims.i ../../firmware/include/fpga_regs_common.h ../../firmware/include/fpga_regs_standard.h
|
||||
$(SWIG) $(SWIGPYTHONARGS) -module usrp_prims -o prims.cc prims.i
|
||||
|
|
Loading…
Reference in New Issue