Мы используем куки, чтобы пользоваться сайтом было удобно.
Хорошо
to the top
>
>
>
Примеры ошибок, обнаруженных с...

Примеры ошибок, обнаруженных с помощью диагностики V763

V763. Parameter is always rewritten in function body before being used.


Source Engine SDK

V763 Parameter 'iElement' is always rewritten in function body before being used. dt_utlvector_send.cpp 49


void SendProxy_UtlVectorElement(...., int iElement, ....)
{
  ....
  iElement = pProp->GetElementStride();
  ....
  if (iElement >= pUtlVec->Count())
  {
    ....
  }
  else
  {
    pExtra->m_ProxyFn(
      pProp, pData,
      (char*)pUtlVec->Base() + iElement*pExtra->m_ElementStride,
      pOut, 0, objectID);
  }
}

Similar errors can be found in some other places:

  • V763 Parameter 'flDist' is always rewritten in function body before being used. npc_cranedriver.cpp 180
  • V763 Parameter 'flDist' is always rewritten in function body before being used. npc_strider.cpp 2561

GCC

V763 Parameter 'flags' is always rewritten in function body before being used. call.cc 994, call.cc 981


static conversion *
build_aggr_conv (tree type,
                 tree ctor,
                 int flags,                               // <=
                 tsubst_flags_t complain)
{
  unsigned HOST_WIDE_INT i = 0;
  conversion *c;
  tree field = next_aggregate_field (TYPE_FIELDS (type));
  tree empty_ctor = NULL_TREE;
  hash_set<tree, true> pset;
  flags = LOOKUP_IMPLICIT|LOOKUP_NO_NARROWING;            // <=
  ....
}

MuseScore

V763 Parameter 'y' is always rewritten in function body before being used. tremolo.cpp 287


void Tremolo::layoutOneNoteTremolo(qreal x, qreal y, qreal spatium)
{

  bool up = chord()->up();
  int line = up ? chord()->upLine() : chord()->downLine();
  ....
  qreal yLine = line + t;
  ....
  y = yLine * .5 * spatium;

  setPos(x, y);
}

Command & Conquer

V763 Parameter 'coord' is always rewritten in function body before being used. DISPLAY.CPP 4031


void DisplayClass::Set_Tactical_Position(COORDINATE coord)
{
  int xx = 0;
  int yy = 0;

  Confine_Rect(&xx, &yy, TacLeptonWidth, TacLeptonHeight,
    Cell_To_Lepton(MapCellWidth) + GlyphXClientSidebarWidthInLeptons,
    Cell_To_Lepton(MapCellHeight));

  coord = XY_Coord(xx + Cell_To_Lepton(MapCellX), yy + Cell_To_Lepton(....));

  if (ScenarioInit) {
    TacticalCoord = coord;
  }
  DesiredTacticalCoord = coord;
  IsToRedraw = true;
  Flag_To_Redraw(false);
}

Similar errors can be found in some other places:

  • V763 Parameter 'coord' is always rewritten in function body before being used. DISPLAY.CPP 4251

GCC

V763 Parameter 'off' is always rewritten in function body before being used. ipa-polymorphic-call.c 766


bool
ipa_polymorphic_call_context::set_by_invariant (tree cst,
            tree otr_type,
            HOST_WIDE_INT off)
{
  poly_int64 offset2, size, max_size;
  bool reverse;
  tree base;

  invalid = false;
  off = 0;
  ....
  if (otr_type && !contains_type_p (TREE_TYPE (base), off, otr_type))
    return false;

  set_by_decl (base, off);
  return true;
}

Haiku Operation System

V763 Parameter 'menu' is always rewritten in function body before being used. video.cpp 648


bool
video_mode_hook(Menu *menu, MenuItem *item)
{
  video_mode *mode = NULL;

  menu = item->Submenu();
  item = menu->FindMarked();
  ....
}

Similar errors can be found in some other places:

  • V763 Parameter 'force_16bit' is always rewritten in function body before being used. ata_adapter.cpp 151
  • V763 Parameter 'force_16bit' is always rewritten in function body before being used. ata_adapter.cpp 179
  • V763 Parameter 'menu' is always rewritten in function body before being used. video.cpp 264
  • And 16 additional diagnostic messages.

Stellarium

V763 Parameter 'updatePos' is always rewritten in function body before being used. StelGuiItems.cpp 690


void BottomStelBar::updateText(bool updatePos)
{
  .... // the index argument is not used here
  updatePos = true;
  ....
}

LibreOffice

V763 Parameter 'nNativeNumberMode' is always rewritten in function body before being used. calendar_jewish.cxx 286


OUString SAL_CALL
Calendar_jewish::getDisplayString(...., sal_Int16 nNativeNumberMode )
{
  // make Hebrew number for Jewish calendar
  nNativeNumberMode = NativeNumberMode::NATNUM2;

  if (nCalendarDisplayCode == CalendarDisplayCode::SHORT_YEAR) {
    sal_Int32 value = getValue(CalendarFieldIndex::YEAR) % 1000;
    return mxNatNum->getNativeNumberString(...., nNativeNumberMode );
  }
  else
    return Calendar_gregorian::getDisplayString(...., nNativeNumberMode );
}

Similar errors can be found in some other places:

  • V763 Parameter 'bExtendedInfo' is always rewritten in function body before being used. graphicfilter2.cxx 442
  • V763 Parameter 'nVerbID' is always rewritten in function body before being used. oleembed.cxx 841
  • V763 Parameter 'pCursor' is always rewritten in function body before being used. edlingu.cxx 843
  • And 2 additional diagnostic messages.

NCBI Genome Workbench

V763 Parameter 'w1' is always rewritten in function body before being used. bmfunc.h 5363


/// Bit COUNT functor
template<typename W> struct bit_COUNT
{
  W operator()(W w1, W w2)
  {
    w1 = 0;
    BM_INCWORD_BITCOUNT(w1, w2);
    return w1;
  }
};

Chromium

V763 Parameter 'index' is always rewritten in function body before being used. tab_strip_model_experimental.cc 314


void TabStripModelExperimental::InsertWebContentsAt(
    int index,
    content::WebContents* contents,
    int add_types)
{
  .... // the index argument is not used

  index = tab_view_count_ - 1;

  ....
}

The value passed in the index argument is not used.


ReOpenLDAP

V763 Parameter 'rc' is always rewritten in function body before being used. tls_o.c 426


static char *
tlso_session_errmsg(...., int rc, ....)
{
  char err[256] = "";
  const char *certerr=NULL;
  tlso_session *s = (tlso_session *)sess;
  rc = ERR_peek_error(); // <=
  ....
}

Inkscape

V763 Parameter 'new_value' is always rewritten in function body before being used. sp-xmlview-tree.cpp 259


void element_attr_changed(.... const gchar * new_value, ....)
{
  NodeData *data = static_cast<NodeData *>(ptr);
  gchar *label;

  if (data->tree->blocked) return;

  if (0 != strcmp (key, "id") &&
      0 != strcmp (key, "inkscape:label"))
        return;

  new_value = repr->attribute("id"); // <=
  ....
}

Similar errors can be found in some other places:

  • V763 Parameter 'widget' is always rewritten in function body before being used. ruler.cpp 923