octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reducing some warnings at compilation (no sparse matrix support)


From: Thomas Treichl
Subject: Reducing some warnings at compilation (no sparse matrix support)
Date: Sun, 15 Oct 2006 13:45:34 +0200
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

Sorry, forgot warntest.cc
/* mkoctfile-2.9.9 -Wall -W -Wshadow -Wold-style-cast warntest.cc */

#include <octave/oct.h>

void myfun1 (octave_value_list a, octave_value_list b)
{
  octave_idx_type c;
#if 0
  c = a(0).length () + b(0).length ();
  std::cout << "Hallo world 1\n" << a(0).length () << "\n" << b(0).length () << 
"\n";
#endif
}

void myfun2 (GCC_ATTR_UNUSED octave_value_list a, GCC_ATTR_UNUSED 
octave_value_list b)
{
  GCC_ATTR_UNUSED octave_idx_type c;
#if 0
  c = a(0).length () + b(0).length ();
  std::cout << "Hallo world 2\n" << a(0).length () << "\n" << b(0).length () << 
"\n";
#endif
}

void myfun3 (GCC_ATTR_UNUSED octave_value_list a, GCC_ATTR_UNUSED 
octave_value_list b)
{
  GCC_ATTR_UNUSED octave_idx_type c;
#if 1
  c = a(0).length () + b(0).length ();
  std::cout << "Hallo world 3\n" << a(0).length () << "\n" << b(0).length () << 
"\n";
#endif
}

DEFUN_DLD (warntest, args, nargout, "warntest function")
{
  octave_value_list retval;
  int nargin = args.length ();

  myfun1 (args, args);
  myfun2 (args, args);
  myfun3 (args, args);

  return retval;
}

reply via email to

[Prev in Thread] Current Thread [Next in Thread]