Skip to content

Commit

Permalink
Fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
codebrainz committed Aug 4, 2017
1 parent ea217b7 commit 092f2a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HACKING
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ Coding
initialization part of a for loop.
* Local variables that will not be modified should be marked as ``const``
to indicate intention. This allows the compiler to give a warning if
part of the code accidentally tries to change the value. This does not
apply to non-pointer parameters where it needlessly exposes the
implementation and it's obvious a copy is made anyway.
part of the code accidentally tries to change the value.
* Pointer parameters should be marked ``const`` if the value they point
to will not be mutated within the function.
* Don't let variable names shadow outer variables - use gcc's -Wshadow
option.
* Do not use G_LIKELY or G_UNLIKELY (except in critical loops). These
Expand Down

0 comments on commit 092f2a9

Please sign in to comment.