Skip to content

gtk.cfg: Remove extra semicolons from g_return* macros#8632

Open
correctmost wants to merge 1 commit into
cppcheck-opensource:mainfrom
correctmost:fix-g-return-defines
Open

gtk.cfg: Remove extra semicolons from g_return* macros#8632
correctmost wants to merge 1 commit into
cppcheck-opensource:mainfrom
correctmost:fix-g-return-defines

Conversation

@correctmost
Copy link
Copy Markdown

The extra semicolons caused unknownMacro errors when checking code like this:

if (hadj)
  g_return_if_fail (GTK_IS_ADJUSTMENT (hadj));
else
  hadj = GTK_ADJUSTMENT (...)

They were introduced in commit c0b5309, but they are not actually present in the upstream GLib macros.

The extra semicolons caused unknownMacro errors when checking
code like this:

if (hadj)
  g_return_if_fail (GTK_IS_ADJUSTMENT (hadj));
else
  hadj = GTK_ADJUSTMENT (...)

They were introduced in commit c0b5309, but they are not actually
present in the upstream GLib macros.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant